Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: use lib problem.

by sanPerl (Friar)
on Jun 01, 2007 at 09:52 UTC ( #618680=note: print w/ replies, xml ) Need Help??


in reply to Re: use lib problem.
in thread use lib problem.

This is just FYI. If you want to use directory as library on unix, where your script is being called. for e.g.

>perl /home/abcd/script.pl
then you can also use following code
BEGIN { if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { $runtimedir = $1; $program = $2; } } use strict; use lib $main::runtimedir;


Comment on Re^2: use lib problem.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-07-25 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (172 votes), past polls