Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

•Re: Re: convert whitespaces to underscores

by merlyn (Sage)
on May 26, 2002 at 22:15 UTC ( [id://169438]=note: print w/replies, xml ) Need Help??


in reply to Re: convert whitespaces to underscores
in thread convert whitespaces to underscores

chdir "-"; won't work anywhere. All I can say is "untested code". It doesn't matter what your shell is. Perl is handing that to chdir(2) which is then looking (regardless of shell) for a subdirectory called dash underneath the current directory.

That's why you should always always always check the return status of chdir -- to prevent such embarassment.

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: Re: convert whitespaces to underscores

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-25 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found