Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^25: can't import using exporter

by chromatic (Archbishop)
on Apr 26, 2012 at 00:21 UTC ( [id://967207]=note: print w/replies, xml ) Need Help??


in reply to Re^24: can't import using exporter
in thread can't import using exporter

... none of the introductory books written by the language authors say you should use BEGIN or separate files.

See the final two paragraphs on page 128 of the third edition of the Camel as well as pages 302 and 303. See also page 294.

I try multiple ways, above to import that var. None of them work.

Several given in this thread work.

Because perl wasn't designed to have the requirement that different classes be developed in separate files.

Non sequitur. Perl wasn't designed for you to call import() directly yourself. When you mix several different concepts together without understanding how Perl works, you get the mess you have.

Feel free to file this as a bug with p5p. You'll get the same answer there.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-18 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found