Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by IOrdy (Friar)
on Mar 12, 2003 at 23:31 UTC ( #242536=note: print w/replies, xml ) Need Help??


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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Find the full path of the script at run time
by ibanix (Hermit) on Mar 12, 2003 at 23:56 UTC
    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;
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Re: Find the full path of the script at run time
by fredopalus (Friar) on Mar 12, 2003 at 23:43 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2023-01-29 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?