|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Dereferencing a hash reference to a Hash of Arraysby Chmrr (Vicar) |
| on Jun 19, 2002 at 10:08 UTC ( #175610=note: print w/ replies, xml ) | Need Help?? |
|
You want to use @{...} to dereference the array reference. That is, @{$sort->{23}} will get you a list. For your specific problem, I'd do:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||