Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: -e on windows giving error

by Util (Priest)
on Nov 17, 2011 at 23:18 UTC ( #938701=note: print w/ replies, xml ) Need Help??


in reply to -e on windows giving error

Reorder your letters to put 'A' at the end. This is an improvement, not a perfect solution; you will only get the pop-up if `extracted` is not found at all.

sub get_drive { for my $letter ( 'B' .. 'Q', 'A' ) { return "$letter:" if -e "$letter:/extracted"; } return; }


Comment on Re: -e on windows giving error
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-02 04:18 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 (27 votes), past polls