in reply to RE: Array inside hashes
in thread Array inside hashes
Perl appears to set $list[0] to a reference to [$a, $b, $c]. Is there a less redundant way to say [\$a, \$b, \$c]?$a = "foo"; $b = "bar"; $c = "baz"; @list = \[$a, $b, $c]; foreach(@list) { print $$_ . "\n"; }
|
|---|