in reply to Re^8: 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/

Ok, now I'm sure you can.

require says The file is included via the do-FILE mechanism, which is essentially just a variety of "eval".

And do says If "do" cannot read the file, it returns undef and sets $! to the error.

  • Comment on Re^9: Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/

Replies are listed 'Best First'.
Re^10: Can't locate IO/Scalar.pm in @INC (@INC contains: /opt/rocks/lib/perl5/5.8.8/
by ikegami (Patriarch) on Apr 25, 2009 at 16:40 UTC
    ok, I'll take that. Of course, $! is only meaningful if require got as far as the "do", but we know that to be the case here.
      $! only meaningful if require got as far as the "do",

      I'm not willing to concede that, but I won't check to make sure either :)