if(-e $file){ print"File exists\n"; } ## And to test if its a directory... if(-d $file){ print"Its also a directory!\n"; }
In reply to Re: is there a file/directory?
by TStanley
in thread is there a file/directory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |