Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: if (-d$_) failes because of white space

by nimdokk (Vicar)
on May 13, 2009 at 18:44 UTC ( #763872=note: print w/ replies, xml ) Need Help??


in reply to if (-d$_) failes because of white space

Try wrapping quotes around $_.

my $dir = "\'$_\'";

Some OS platforms don't like those spaces (even tho it allows you to put them into the directory names *cough*windows*cough* :-)


Comment on Re: if (-d$_) failes because of white space
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-12-26 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (171 votes), past polls