in reply to Re: passing @ to sub and getting back hash
in thread passing @ to sub and getting back hash
Not quite so simple. Better would be:
my %hash2 = map {/^ "xxxx-(\d+):xxxxxx([^,]+),.+"$/ ? ($1 => $2) : ( +)} @data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: passing @ to sub and getting back hash
by jwkrahn (Abbot) on Jan 01, 2008 at 03:30 UTC | |
by NetWallah (Canon) on Jan 01, 2008 at 04:12 UTC | |
by GrandFather (Saint) on Jan 01, 2008 at 05:03 UTC | |
|
Re^3: passing @ to sub and getting back hash
by convenientstore (Pilgrim) on Jan 01, 2008 at 02:00 UTC |