in reply to My filtered list is not being returned for cp
-M is a weirdly named function whose sole argument is a file name or a file handle.
my $mod_time = (-M < 3) $targetfile;
should be
my $mod_time = (-M $targetfile) < 3;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble filtering files based on date
by lomSpace (Scribe) on Jan 30, 2009 at 18:15 UTC |