in reply to writtings files to a new folder
The default variable $_ is set to each element of the list and the operator -f can work with it.use File::Copy; grep { (move("old/$_", "new/.") or warn "$_ => $!") if -f } @files;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: writtings files to a new folder
by jbert (Priest) on Jan 24, 2007 at 10:56 UTC | |
by MaxKlokan (Monk) on Jan 24, 2007 at 12:12 UTC | |
by jbert (Priest) on Jan 24, 2007 at 12:22 UTC | |
by roboticus (Chancellor) on Jan 24, 2007 at 13:31 UTC |