in reply to Re: from array to hash with grep
in thread from array to hash with grep
Is this still possible with map or should I switch to a simpel foreach$inp{A} = 'abc_A_bla' ; etc
?foreach ( @inp ) { ($key) = $_ =~ /\w{3}_(\w)/ ; $inp{$key} = $_ ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: from array to hash with grep
by bart (Canon) on Jun 15, 2006 at 08:27 UTC | |
|
Re^3: from array to hash with grep
by davorg (Chancellor) on Jun 15, 2006 at 08:27 UTC |