in reply to Environment Variable for residing directory

Ahem. It's Environment Variable. "Environmental variable" sounds like some change in the climate. {grin}

You want FindBin. Examples there.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Environment Variable for residing directory

Replies are listed 'Best First'.
Re^2: Environment Variable for residing directory
by shenme (Priest) on Oct 01, 2004 at 22:52 UTC
    You want FindBin.
    ... or not. See use lib qw(relative path) for a recent discussion of alternatives to FindBin.

    In fact (nod to PodMaster's pointer) I'm surprised the Q&A hasn't been updated.