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

Re: use lib in cgi env

by 2teez (Priest)
on Nov 05, 2012 at 14:51 UTC ( #1002336=note: print w/ replies, xml ) Need Help??

in reply to use lib in cgi env

You want to get at the your .pm files in /home/user/test-workspace/trunk/modules/?
If I get your question right, then why not do:

use lib "test-workspace/trunk/modules"; use upload; print $upload::variable;
But also know that $variable must also be a global variable,declared either using our $variable; or use vars qw($variable);
Hope this help

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Comment on Re: use lib in cgi env
Select or Download Code
Replies are listed 'Best First'.
Re^2: use lib in cgi env
by AlexTape (Monk) on Nov 05, 2012 at 15:34 UTC
    because i assumed to have a relative path. the absolute method is working well..
    $perlig =~ s/pec/cep/g if 'errors expected';

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-11-29 19:53 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls