Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to change path

by meraxes (Friar)
on Oct 25, 2007 at 03:54 UTC ( #647068=note: print w/ replies, xml ) Need Help??


in reply to How to change path

system is executing the cd command in a forked process and returns to your Perl script. As it's happening in a different process, the working directory of your script doesn't change.

Instead of the system call, use chdir:

chdir '/home/sa/temp';

update -- add links to docs
update the second... i'm guessing the downvote was because of my erroneous description of what system was doing (as eff_i_g explains better). Fixed description to better reflect that. That'll teach me to read the docs better.

--
meraxes


Comment on Re: How to change path
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-07-11 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (219 votes), past polls