in reply to Re: Variable to point to library?
in thread Variable to point to library?

Interesting. I just read up on $0 in the Camel and it says assignment to it "is magical," but no examples. If you had a sec, a line of code to see how this is done would be appreciated. Thanks.

—Brad
"Don't ever take a fence down until you know the reason it was put up. " G. K. Chesterton

Replies are listed 'Best First'.
Re^3: Variable to point to library?
by pbeckingham (Parson) on Jul 10, 2004 at 22:36 UTC

    Perhaps something like...

    use File::Basename; use File::Spec; my $pathtolib = File::Spec->rel2abs (dirname $0);