Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: true from (-e "") on Windoze

by monsoon (Pilgrim)
on Jul 03, 2012 at 04:33 UTC ( #979575=note: print w/replies, xml ) Need Help??


in reply to true from (-e "") on Windoze

$file = '""'; if (-e $file && !-d $file) { print "Yep\n"; } else {print "Nope\n"; }
Won't work of course if the file list can contain directories.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979575]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-11-18 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?