mmartin has asked for the wisdom of the Perl Monks concerning the following question:
# Use "-e" to test is the file exists... MY_FILE="/home/my_filename.txt" if ( -e $MY_FILE ) { print "The File Exists\n\n"; } else { print "The File DOES NOT Exists\n\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What are the Names for the "TEST" Switches??
by toolic (Bishop) on Oct 11, 2012 at 17:38 UTC | |
|
Re: What are the Names for the "TEST" Switches??
by jandrew (Chaplain) on Oct 11, 2012 at 18:05 UTC | |
|
Re: What are the Names for the "TEST" Switches??
by greengaroo (Hermit) on Oct 11, 2012 at 19:40 UTC | |
|
Re: What are the Names for the "TEST" Switches??
by mmartin (Monk) on Oct 11, 2012 at 18:34 UTC | |
|
Re: What are the Names for the "TEST" Switches??
by kcott (Archbishop) on Oct 12, 2012 at 08:20 UTC | |
|
Re: What are the Names for the "TEST" Switches??
by thomas895 (Deacon) on Oct 12, 2012 at 07:03 UTC |