![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: can't use string as hash refby Anonymous Monk |
on Oct 25, 2010 at 12:30 UTC ( [id://867207]=note: print w/replies, xml ) | Need Help?? |
The latter doesn't work either (it just doesn't issue an error here, 'cos the script is dying after the first problem on line 13). The reason is simply that if you assign 42 to $hash{\@array}, or $hash{1}{\@array}{1} for that matter, and then try to deference that value in the next statement, you're essentially trying to say
which obviously doesn't make sense.
In Section
Seekers of Perl Wisdom
|
|