CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

 



donghe
Novice

Apr 23, 2009, 10:07 AM

Post #1 of 5 (2652 views)
Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ Can't Post

Hi Friends,

I got this error message- (Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/....)) when I run a program. However, the Scalar.pm is located in the '/opt/rocks/lib/perl5/5.8.8/IO/' directory and this directory is in the array @INC. Does anybody know what's wrong with it?

Thanks!

Dong


Shree
Novice


Apr 24, 2009, 4:20 AM

Post #2 of 5 (2632 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

try

Code
use lib "opt/rocks/lib/perl5/5.8.8/IO/Scalar.pm";

Thanks
-Shree



KevinR
Veteran


Apr 24, 2009, 9:48 AM

Post #3 of 5 (2627 views)
Re: [Shree] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post


In Reply To
try

Code
use lib "opt/rocks/lib/perl5/5.8.8/IO/Scalar.pm";



lib adds directories, not files to @INC, so the correct usage would be:


Code
use lib "opt/rocks/lib/perl5/5.8.8";

-------------------------------------------------


(This post was edited by KevinR on Apr 24, 2009, 1:34 PM)


donghe
Novice

Apr 24, 2009, 10:36 AM

Post #4 of 5 (2624 views)
Re: [Shree] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

Thanks!
it works by using use lib..., but i got another error:
Bareword found where operator expected at /home/donghe/iprscan/lib/Dispatcher/Tool/InterProScanParser.pm

what's wrong with this


KevinR
Veteran


Apr 24, 2009, 1:37 PM

Post #5 of 5 (2607 views)
Re: [donghe] Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/ [In reply to] Can't Post

See where my finger is pointing? Thats where the problem is. Can't see my finger? Oh.... thats cool, because we can't see your code. Wink
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives