if ( -e "path/to/file" ) { print "File exists, hooray!"; } else { print "I couldn't find the file. Hohum:("; }
kelan
Perl6 Grammar Student
In reply to Re: Check Existence of a File
by kelan
in thread Check Existence of a File
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |