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 reply to Re^3: better way to convert a string into an array and an hash
by Rhose
in thread better way to convert a string into an array and an hash
by Miguel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |