0

I want to embed a video on my page, and this comes in a code, but when just simply paste this on my page, it won't work. I've done this before with iframes, and this works instantly. How do I get this code also working?

this is the code

<object width="450" height="237"><param name="movie" value="http://www.traileraddict.com/emd/72497"></param><param name="allowscriptaccess" value="always"><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.traileraddict.com/emd/72497" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="transparent" width="450" height="237" allowFullScreen="true"></embed></object>

This subroutine returns a hash reference (pointer to a hash.) Curly braces used in this fashion construct an anonymous hash and return a reference to it.

Assuming you call the subroutine something like this:

my $results = _relation();

You would access the elements using the -> dereferencing operator:

$results->{player1}    # 0
$results->{player2}    # 1

If you want to copy the anonymous hash into a named one, you can dereference the entire thing at once with

my %regular_hash = %$results;

See the Perl References Tutorial for more.

4

1 に答える 1

0

これは私にとってはうまくいきます。あなたのコードは大丈夫です

于 2013-08-21T06:21:06.633 に答える