strredwolf has asked for the wisdom of the Perl Monks concerning the following question:
Now will it print "Anything goes", or will the hash drop from under the reference, and confuse Perl? I'm wondering if the use of my is similar to C++'s new()...my(@arr); { my %var; $var{"love"}="Anthing goes"; $arr[0]=\%var; } print $$arr[0]{"love"};
--
$Stalag99{"URL"}="http://stalag99.keenspace.com";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dissapearing from under one's reference
by danger (Priest) on Mar 28, 2001 at 11:29 UTC | |
|
Re: Dissapearing from under one's reference
by mikfire (Deacon) on Mar 28, 2001 at 11:26 UTC |