|
|
| "be consistent" | |
| PerlMonks |
Re: How do I tighten this with map?by Amoe (Friar) |
| on Oct 16, 2001 at 15:37 UTC ( [id://119158]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||