5 Jul 2008 at 09:51 #1 daven1986 daven1986 Soldato Joined 29 Oct 2005 Posts 3,298 Hi guys, Am looking at a script and it has a line similar to: if ( -e $file){ } what does the -e mean? Thanks Daven
Hi guys, Am looking at a script and it has a line similar to: if ( -e $file){ } what does the -e mean? Thanks Daven
5 Jul 2008 at 09:56 #2 matja matja Associate Joined 29 Sep 2005 Posts 819 Location St Neots / Dublin -e checks if the supplied filename exists as a file, if it does, it returns true, false otherwise.
5 Jul 2008 at 09:57 #3 daven1986 daven1986 Soldato OP Joined 29 Oct 2005 Posts 3,298 ah legend, thanks. Thought it might be something like that. Is there a list of these -<command>'s anywhere, everytime I google for it, I get command line switches?
ah legend, thanks. Thought it might be something like that. Is there a list of these -<command>'s anywhere, everytime I google for it, I get command line switches?
5 Jul 2008 at 09:58 #4 matja matja Associate Joined 29 Sep 2005 Posts 819 Location St Neots / Dublin http://perldoc.perl.org/perlfunc.html#Alphabetical-Listing-of-Perl-Functions
5 Jul 2008 at 09:59 #5 daven1986 daven1986 Soldato OP Joined 29 Oct 2005 Posts 3,298 *sigh* thought I looked there!! Many thanks