in reply to Perl Internals: Hashes
I wondered for a long time why
cat /dev/world | perl -e "(/(^.*? \?) 42\!/) && (print $1))"
errors->(c)
works like a charme. Is it some internal magic or simply that hashes and named arrays are implemented not that different?sub something { my %hash = @_ print $hash{1} . "\n"; } %test; $test{1} = 1; something(%test);
cat /dev/world | perl -e "(/(^.*? \?) 42\!/) && (print $1))"
errors->(c)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Perl Internals: Hashes
by demerphq (Chancellor) on Apr 15, 2004 at 09:17 UTC | |
Re: Re: Perl Internals: Hashes
by kelan (Deacon) on Apr 15, 2004 at 21:09 UTC |
In Section
Seekers of Perl Wisdom