Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: (3) Undefined subroutine

by broquaint (Abbot)
on Mar 11, 2003 at 14:53 UTC ( [id://242058]=note: print w/replies, xml ) Need Help??


in reply to Re: (3) Undefined subroutine
in thread Undefined subroutine

Quotes are your friend ...
shell> cat > J9Test.pm package J9Test; 1; shell> perl -MJ9Test -le print $INC{"J9Test.pm"}; shell> perl -MJ9Test -le print@ARGV $INC{"J9Test.pm"}; {J9Test.pm} shell> perl -MJ9Test -le 'print $INC{"J9Test.pm"};' J9Test.pm
Although the above was performed on a linux box using bash (so you might get a different result in a different shell), I'm pretty sure that $INC{"J9Test.pm"} is being passed as the last argument to perl.
HTH

_________
broquaint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found