Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to have universal perl script for C and D drive ?

by moritz (Cardinal)
on Feb 08, 2008 at 16:54 UTC ( [id://667015]=note: print w/replies, xml ) Need Help??


in reply to How to have universal perl script for C and D drive ?

You can do the following to get the current working directory:

use Cwd; # a core module ;-) my $cwd = getcwd;

Then you can use paths relative to $cwd, or rewrite the paths depending on whether you're on C:\ or on D:\.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found