in reply to How do I tighten this with map?
%fileHash = map { /^(\w\w\w\d*):log\.$date$/ ? ($1, $_) : () } readdir DIR;
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I tighten this with map?
by mikeB (Friar) on Oct 16, 2001 at 20:08 UTC | |
by Hofmator (Curate) on Oct 17, 2001 at 16:13 UTC | |
|
Re: Re: How do I tighten this with map?
by SparkeyG (Curate) on Oct 16, 2001 at 20:06 UTC |