Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Global symbol x requires explicit package name at main.pl

by rowdog (Curate)
on Aug 19, 2010 at 10:37 UTC ( #855990=note: print w/ replies, xml ) Need Help??


in reply to Global symbol x requires explicit package name at main.pl

use lib to put the current directory at the front of the load list:

use strict; use lib '.'; use test; print $x

But you should just follow the good advice you've received from toolic and change the name of your module to something saner like MyTest.pm.


Comment on Re: Global symbol x requires explicit package name at main.pl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-07 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls