Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: perl module creation problem

by EvanCarroll (Chaplain)
on Nov 13, 2009 at 03:16 UTC ( #806856=note: print w/ replies, xml ) Need Help??


in reply to perl module creation problem

update I couldn't read that badly formated code, so I rewrote it and redid my reply, with proper formatting it become very aparent it was because your @Export had different case than the variable you declared to be global @EXPORT. Also, use our for declaring globals unless you have to work with very old perls.

package LineParse; use XML::Simple; use Data::Dumper; use strict; use Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(&readconfig ); our @EXPORT_OK = qw(); sub readconfig() { # my xml parsing code }


Evan Carroll
The most respected person in the whole perl community.
www.evancarroll.com


Comment on Re: perl module creation problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-04 06:02 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 (57 votes), past polls