pelagic has asked for the wisdom of the Perl Monks concerning the following question:
$ ls -ltr -rw------- 1 pelagic dba 4294967296 Mar 16 13:50 foo -rw------- 1 pelagic dba 4096 Mar 16 13:52 bar
use strict; my @files = qw/foo bar/; foreach my $file (@files) { if (-e "$file") { print $file, " found\n"; } else { print $file, " not found\n"; } }
The File Test Operators seems to "overview" my biggie ...foo not found bar found
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Test Operator '-e' with large files
by Limbic~Region (Chancellor) on Mar 16, 2004 at 13:27 UTC | |
|
Re: File Test Operator '-e' with large files
by calin (Deacon) on Mar 16, 2004 at 13:35 UTC | |
|
Re: File Test Operator '-e' with large files
by pelagic (Priest) on Mar 16, 2004 at 13:52 UTC |