Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Find the full path of the script at run time

by ibanix (Hermit)
on Mar 12, 2003 at 23:56 UTC ( #242541=note: print w/replies, xml ) Need Help??


in reply to Re: Find the full path of the script at run time
in thread Find the full path of the script at run time

I'm sorry, but this is wrong.

If my script is C:\scripts\cwd.pl, and I run your code:
C:\> C:\scripts\cwd.pl C:\
I need the location of the script, not the current directory.

ibanix

$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-08-10 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?