Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2023-12-01 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (5 votes). Check out past polls.

    Notices?