I used to use a lot of require
d scripts that I'd written, but these hardly compare to using proper modules. About the time I was reading perlboot
and learning OO perl, I also happened across the Monastery. I know modules aren't just for OO (and certainly not functional programming), but understanding OO Perl has affected my ability to get into modules, from a writing and using perspective. I'm still trying to tame my enthusiasm for turning everything into one giant instance.
Side Note: For anyone who hasn't read perlboot
, I must say it is a shining example of why merlyn
is a leading Perl trainer. He starts you from the ground and builds from there, when you're done you've got the basics of OO like no other perldoc can teach it. And it wasn't until about a week ago, trying to understand closures and searching the vastness of the Monastery, that I found a link to one of his articles which lifted the scales from my eyes about what it really meant to program functionally. Thanks, merlyn
And of course my usage of CPAN modules has gone up considerably since I found PM. I'd never really understood CGI.pm before I came here. And the CPAN nodelet is a life-saver. 99% of the time it gets me right to a module I can take advantage of.
At least I was using strict before PM though!
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.