in reply to hash assignment using map with multiple statements
use Text::ParseWords; use File::Basename; my %testhash = map { my ($file, $dir, $suffix) = fileparse((shellwords $ +_)[-1], '\.txt'); $file => $file . $suffix } @teststr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash assignment using map with multiple statements
by diomedea (Sexton) on Sep 22, 2008 at 09:48 UTC |