You could use a loop to iterate over the split values of your variable and use each as the key for a hash in an assignment to '', or thereabouts.
Show us what you've tried and what you're having trouble with, and we can probably give more help.
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
In reply to Re: splitting directly to hash
by chargrill
in thread splitting directly to hash
by narashima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |