http://www.perlmonks.org?node_id=1084984


in reply to Re^2: Can't find function in @INC
in thread Can't find function in @INC

LanX meet splain
Can't locate Module.pm in @INC Can't locate Module.pm in @INC (#1) (F) You said to do (or require, or use) a file that couldn't be fo +und. Perl looks for the file in all the locations mentioned in @INC, un +less the file name included the full path to the file. Perhaps you nee +d to set the PERL5LIB or PERL5OPT environment variable to say where +the extra library is, or maybe the script needs to add the library nam +e to @INC. Or maybe you just misspelled the name of the file. See "require" in perlfunc and lib.

Replies are listed 'Best First'.
Re^4: Can't find function in @INC (splain)
by LanX (Archbishop) on May 05, 2014 at 00:12 UTC
    Off-topic?!?

    Or how does splain help to find error-msgs close to Can't find function in @INC?

    > echo "Can't find function in @INC"|splain Can't find function in @INC

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      Off-topic?!?

      How do you figure? Its on topic to Re^2: Can't find function in @INC ... yeah the message isn't listed verbatim, thats what splain is for ... which is what amon probably used ... AfAIK its safe to assume even amon noticed those printf escapes ... perldiag says Spots that vary are denoted with a %s or other printf-style escape.

      Or how does splain help to find error-msgs close to Can't find function in @INC?

      It doesn't :) What it does show is that the error message is made up (if its not in perldiag its fake )