Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Howto Call Package from a Subdirectory

by arpad.szasz (Pilgrim)
on Jun 18, 2011 at 23:17 UTC ( [id://910368]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Howto Call Package from a Subdirectory
in thread Howto Call Package from a Subdirectory

I now use this (only tested on Linux):

our $RealBin; BEGIN { use File::Basename 'dirname'; use File::Spec::Functions 'rel2abs'; $RealBin = rel2abs( dirname( __FILE__ ) ); } use lib "$RealBin/lib";

Log In?
Username:
Password:

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

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

    No recent polls found