XP is just a number | |
PerlMonks |
Re: How do I tighten this with map?by Amoe (Friar) |
on Oct 16, 2001 at 19:37 UTC ( [id://119158]=note: print w/replies, xml ) | Need Help?? |
map { m/^(\w{3}\d*):log.$date$/ && $fileHash{$1} = $_ } @files;
If you really want to use map, although I'm told it's bad form to discard the return value.
-- my one true love
In Section
Seekers of Perl Wisdom
|
|