Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Platform independant PWD

by tenatious (Beadle)
on Nov 16, 2000 at 22:09 UTC ( #42008=note: print w/replies, xml ) Need Help??


in reply to Re: Platform independant PWD
in thread Platform independant PWD

although, you could write a little trap for OS.... I don't use win32, so I don't know the value of $^O on win32, but you could do something like this:
if ($^O =~ /linux/) { $working_directory = `pwd`; } elsif ($^O =~ /win32/) { # or value for win32 $working_directory = `cd`; } else { $working_directory = "./"; # :) }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-10-06 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?