in reply to selcting a specific file
My experience is that all the -X file operators work on Windows and FreeBSD. You could try
I would make sure that it's actually a file; directories on *ix-ish systems have non-zero size. It would probably also make sense to check to see if you have the required permissions for copying the file into another location, e.g. on *ix, you need write access in the target directory.@files = grep { -s and -f} @files;
Copying files can be done with File::Copy or system,
...kudos to blazar for his observation about _ and the -X operators.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: selcting a specific file
by blazar (Canon) on Oct 24, 2007 at 14:35 UTC |