Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Can't find function in @INC

by sundialsvc4 (Abbot)
on May 05, 2014 at 14:58 UTC ( #1085081=note: print w/replies, xml ) Need Help??

in reply to Can't find function in @INC

It is a pretty-good test question, though, because if you have dealt with the Perl environment for any length of time at all, you will have encountered it and you will therefore understand what it means.   Eventually you will tpyo a module-name in a use declaration . . .

Replies are listed 'Best First'.
Re^2: Can't find function in @INC
by DrHyde (Prior) on May 06, 2014 at 10:48 UTC

    Except that if you do that you won't be told "Can't find function in @INC", you'll be told something like ...

    $ perl -E 'use Gargh' Can't locate in @INC (@INC contains: ...)

    The question is wrong. If it were a closed-book test I'd write something like that I've never seen it before but would guess at it being some kind of mal-formed subroutine reference that got pushed into @INC.

    After RingTFM the closest I can get is this, although I don't recall ever seeing this construction in real life:

    $ perl -E 'push @INC, bless({}, "Foo");require Gargh' Can't locate object method "INC" via package "Foo" at -e line 1.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085081]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2020-08-05 08:12 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (35 votes). Check out past polls.