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

Re: use class path

by pajout (Curate)
on May 27, 2010 at 08:37 UTC ( #841892=note: print w/replies, xml ) Need Help??

in reply to use class path

I am sorry if I advice something trivial for you...

If you use relative path, this is relative to your current directory, NOT to directory where your script is. If it is the case, module FindBin can help to obtain $RealBin.

Replies are listed 'Best First'.
Re^2: use class path
by josera (Beadle) on May 29, 2010 at 18:15 UTC
    Hi, thanks for your help. I've checked again, and the path is good written. I wrote it wrong here, at the forum. I'm sorry. I'll check FindBin, although it's the frist time I hear it. I'm sorry I've been out of Perl for 4 years.
Re^2: use class path
by josera (Beadle) on May 29, 2010 at 18:31 UTC
    I'm confused. I tried FindBin but it didn't work, so as a temporary solution, I copied the .pm files to my current working directory, but even that has failed. What happen with the INC variable?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://841892]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-06-20 12:14 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.