Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by DrHyde (Prior)
on May 06, 2014 at 10:48 UTC ( #1085159=note: print w/replies, xml ) Need Help??


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

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 Gargh.pm 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2019-04-24 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (121 votes). Check out past polls.

    Notices?