Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: (3) Undefined subroutine

by J9 (Beadle)
on Mar 11, 2003 at 14:48 UTC ( [id://242054]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Undefined subroutine
in thread Undefined subroutine

BLUSH..

Tried ...
perl -MJ9Test -le print $INC{"J9Test.pm"};
Still got a blank line though.

Replies are listed 'Best First'.
Re: Re: (3) Undefined subroutine
by broquaint (Abbot) on Mar 11, 2003 at 14:53 UTC
    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://242054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-20 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found