in reply to Re^2: Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/
in thread Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/
The last line 'open(...) = 4' shows that IO/Scalar.pm is successfully opened (so, I suppose you don't get the "Can't locate..." error in this case when just plain loading nothing but the module).
What do you get when you replace "perl -MIO::Scalar -e1" in the strace command with a call to your actual script that exhibits the problem? (Depending on how exactly you're calling the script (e.g. via shell wrapper), you might need the additional option -f to strace. In case of doubt, specify it anyway.) Maybe the script itself is messing with @INC, or some such... BTW, are you sure that you're using the same perl (i.e. /usr/bin/perl) to run the script?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/
by donghe (Initiate) on Apr 24, 2009 at 02:52 UTC | |
by ikegami (Patriarch) on Apr 24, 2009 at 02:58 UTC | |
by syphilis (Archbishop) on Apr 24, 2009 at 03:02 UTC |