in reply to Module Self-Location

The full path to a script is held in the special variable $0. Maybe there is one for a scripts modules ?

Replies are listed 'Best First'.
Re: Re: Module Self-Location
by japhy (Canon) on Feb 08, 2002 at 16:33 UTC
    Well, $0 only holds a relative path. For the full path, you should use FindBin's $Bin and $Script.

    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

        Thanks for the correction.

        _____________________________________________________
        Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
        s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;