Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Question about class/module/component

by crashtest (Curate)
on Jan 21, 2010 at 22:27 UTC ( #818826=note: print w/ replies, xml ) Need Help??


in reply to Question about class/module/component

I thought I'd refer you to my reply in an old thread with a similar topic.

I'm a Java guy myself (involuntarily at work). The biggest mental block I had regarding Perl's system for organizing code is basically: in Perl, a file != a module. That is, one single file can contain code for multiple namespaces... or there can be multiple files, all with code for a single namespace. This is in contrast to Java, where each file starts with a package declaration (or it's implicitly the default package), and you're working with your chosen namespace for the entire file.

perlmod is your definitive guide for all this.


Comment on Re: Question about class/module/component
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-21 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls