in reply to hash assignment using map with multiple statements
map { my $val = (split /\//, $_)[-1]; (my $key = $val) =~ s/\.txt//; $testhash1{$key} = $val } @teststr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash assignment using map with multiple statements
by chromatic (Archbishop) on Sep 19, 2008 at 15:52 UTC |