Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: using change directory within perl script

by bms (Monk)
on Mar 27, 2012 at 04:11 UTC ( #961825=note: print w/ replies, xml ) Need Help??


in reply to using change directory within perl script

Why are you using chdir with File::chdir?

Try using it like:

... use File::chdir; $CWD = '/usr/bin'; # Oh hey, in /usr/bin/ ...

Or

... use File::chdir; $CWD = '/home/me/perl'; # Now in /home/me/perl { local $CWD = '/home/you/python'; # Now in /home/you/python ... } # Back in /home/me/perl ...

Hope this helps!


Comment on Re: using change directory within perl script
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2015-07-30 10:40 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 (271 votes), past polls