Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2016-09-30 15:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (570 votes). Check out past polls.