<?xml version="1.0" encoding="windows-1252"?>
<node id="998494" title="What are the Names for the &quot;TEST&quot; Switches??" created="2012-10-11 13:36:02" updated="2012-10-11 13:36:02">
<type id="115">
perlquestion</type>
<author id="916830">
mmartin</author>
<data>
<field name="doctext">
Hello Monks,&lt;br&gt;
&lt;br&gt;
I had just a simple question about these "Test" Switches/Flags (*That's just what I've been calling them...).&lt;br&gt;
I own the O'REILLY "Programming Perl" 3rd Edition Book. And I'm trying to find a list of switches/flags.&lt;br&gt;
&lt;br&gt;
I'm not looking for the Command Line Switches, which the book only seems to show in the index. But I'm&lt;br&gt;
looking for the "switches" that you can use in, for example an if statement...&lt;br&gt;
&lt;br&gt;
&lt;b&gt;For Example:&lt;/b&gt;&lt;br&gt;
&lt;code&gt;
# 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";
}
&lt;/code&gt;
&lt;br&gt;
Do these "Test Switches" have a special name? And could anyone tell me of a good link where I could find these..?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Any thoughts would be great!&lt;br&gt;
&lt;br&gt;
Thanks in Advance,&lt;br&gt;
Matt&lt;br&gt;
&lt;br&gt;</field>
</data>
</node>
