Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How could you make a script think it's running in its own directory?

by why_bird (Pilgrim)
on Mar 27, 2008 at 10:07 UTC ( #676677=note: print w/replies, xml ) Need Help??


in reply to How could you make a script think it's running in its own directory?

thankyou---chdir and File::Basename was what I was looking for.
Cheers
why_bird
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......
  • Comment on Re: How could you make a script think it's running in its own directory?

Replies are listed 'Best First'.
Re^2: How could you make a script think it's running in its own directory?
by bart (Canon) on Mar 27, 2008 at 11:58 UTC
    There's also FindBin but I don't recommend its use, I've had troubles with it in the past (permissions issues in CGI scripts on Linux) plus, like tye said, FindBin is broken.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2023-06-09 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (35 votes). Check out past polls.

    Notices?