Why it's stupid to `use a variable as a variable name'
Update:
c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "use warnings; use strict; ;; my $foo = 'bar'; ;; my %data; push @{ $data{$foo} }, qw(zero one two three); dd \%data; ;; print qq{'$data{$foo}[1]'}; " { bar => ["zero", "one", "two", "three"] } 'one'
In reply to Re: How to name arrays via scalars.
by AnomalousMonk
in thread How to name arrays via scalars.
by qingdaoghawk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |