in reply to Variable to point to library?

Can you use $0, and manipulate it to create $pathtolib, as $0 will already have a user-specific path?

Replies are listed 'Best First'.
Re^2: Variable to point to library?
by bradcathey (Prior) on Jul 10, 2004 at 21:48 UTC
    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

      Perhaps something like...

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