![]() |
|
more useful options | |
PerlMonks |
Re^3: better way to convert a string into an array and an hashby Rhose (Priest) |
on Oct 05, 2004 at 16:08 UTC ( #396639=note: print w/replies, xml ) | Need Help?? |
I'm not a golfer, but... tr/:/,/;%h=eval;@a=keys%h; Update y/:/,/;%h=eval;@a=keys%h; Update 2 If the ordering of @a is important, how about @a=/(\d+):/g;y/:/,/;%h=eval;
In Section
Seekers of Perl Wisdom
|
|