I am using Perl 5.8.5 on Red Hat Linux.

The output of the following script:

#!/usr/bin/perl -w
@array = [0, 1, 2, 3];
$hash{0} = @array;
print "array = @array\n";
print "hash = ", $hash{0}, "\n";

is:

array = ARRAY(0x8d13c20)
hash = 1

I expected the results to be the same.  Why aren't they?


...Stephen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to