The stupid question is the question not asked | |
PerlMonks |
•Re: Re: convert whitespaces to underscoresby merlyn (Sage) |
on May 26, 2002 at 22:15 UTC ( [id://169438]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Cool Uses for Perl
|
|