Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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.


Comment on Re: true from (-e "") on Windoze
Download Code

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 lurking in the Monastery: (9)
As of 2014-12-29 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (192 votes), past polls