Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: -e " " returns true

by perldeveloper (Scribe)
on Jul 05, 2004 at 16:16 UTC ( #371925=note: print w/ replies, xml ) Need Help??


in reply to Re^3: -e " " returns true
in thread -e " " returns true

Hey PerlingTheUK,

Here's a quick fix for you until you get around this problem. It produces correct results for those dotty filenames both under Windows XP (5.6.1 active perl) and Linux (RedHat 9, 5.6.1 as well).

my $f = ". ."; my $result = minuse ($f); print "[$result]\n"; sub minuse { -f $_[0] || &minusd} sub minusd {local *D; opendir (D, shift) && (close (D) || 1)}


Comment on Re^4: -e " " returns true
Download Code
Re^5: -e " " returns true
by PerlingTheUK (Hermit) on Jul 05, 2004 at 16:47 UTC
    Thank you very much, that works fine. I have installed Build 510 in the meantime and tested -e using that release. All dotty files exist in that build as well, but anyway, this fix is fine for now.

    Hans

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-07-13 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls