use Text::ParseWords; use File::Basename; my %testhash = map { my ($file, $dir, $suffix) = fileparse((shellwords $ +_)[-1], '\.txt'); $file => $file . $suffix } @teststr;
In reply to Re: hash assignment using map with multiple statements
by repellent
in thread hash assignment using map with multiple statements
by diomedea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |