Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by scorpio17 (Monsignor)
on Jul 03, 2012 at 13:11 UTC ( #979690=note: print w/ replies, xml ) Need Help??


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

How about this:

$file = '""'; if ( -e $file && -f $file ) { print "Yes\n"; } else { print "No\n"; }


Comment on Re: true from (-e "") on Windoze
Download Code
Re^2: true from (-e "") on Windoze
by monsoon (Pilgrim) on Jul 03, 2012 at 15:22 UTC
    I think -f rules out too much, named pipes for example. It all depends on what kind of files the list can contain.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2015-07-05 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls