Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Traversing SubDir and Execute Unix Command

by crusher (Acolyte)
on Nov 08, 2008 at 19:16 UTC ( #722426=note: print w/replies, xml ) Need Help??


in reply to Traversing SubDir and Execute Unix Command

to change the current directory do as the following example:

use Cwd; chdir("C:\\Perl") || die "Error changing the directory ($!)";
my $cwd =getdcwd();

Now cwd holds the full path to the working directory. Hope this helps...

  • Comment on Re: Traversing SubDir and Execute Unix Command

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2020-04-05 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (34 votes). Check out past polls.

    Notices?