Anonymous user
Check that file exists: Difference between revisions
Perl - Without a perl module
(Perl - Without a perl module) |
|||
Line 43:
print -d catfile rootdir, 'docs';
'''Without a Perl Module'''
A '''1''' is printed if the file or dir exists.
perl -e 'print -e "./input.txt", "\n";'
perl -e 'print -d "./docs", "\n";'
perl -e 'print -e "/input.txt", "\n";'
perl -e 'print -d "/docs", "\n";'
==[[Pop11]]==
[[Category:Pop11]]
|