Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Variable to point to library?

by bradcathey (Prior)
on Jul 10, 2004 at 21:48 UTC ( [id://373403]=note: print w/replies, xml ) Need Help??


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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://373403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found