Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Use modules or roll your own?

by Abigail-II (Bishop)
on Jul 29, 2002 at 15:58 UTC ( [id://186012]=note: print w/replies, xml ) Need Help??


in reply to Re: Use modules or roll your own?
in thread Use modules or roll your own?

If you want to have a better understanding of Perl, you shouldn't be rolling your own modules, but roll your own core functions.

Write your own print(), qr() and tie().

Abigail

Replies are listed 'Best First'.
Re: Re: Use modules or roll your own?
by Popcorn Dave (Abbot) on Jul 29, 2002 at 20:24 UTC
    Well as I'm still learning Perl -- not that you ever stop learning -- I personally tend to try to do things without modules first so that I get a better core understanding of Perl.

    As far as writing my own print, etc... if I was interested in doing that for a project I was working on, I probably would give it a shot. Until that point though, I'll continue on down the road I travel now.

    I'm currently writing a program that parses HTML pages, and yes I know I could use a module, but for me, I'm sharpening my regex skills the way I'm doing it. When I finish it, I will look at using the module to see if that simplifies my code, but not until.

    That's just me perhaps, but it works for me.

    Some people fall from grace. I prefer a running start...

        I'm currently writing a program that parses HTML pages, and yes I know I could use a module, but for me, I'm sharpening my regex skills the way I'm doing it. When I finish it, I will look at using the module to see if that simplifies my code, but not until.

      I suppose it also depends on how important correctness is to you. If you're working on a project for your own amusement, where getting correct results isn't of earthshaking importance and you can fix bugs pretty much at your own convenience, rolling your own isn't a bad idea. If you need more robustness (business logic, public CGI, etc), you're much better off using a module that's already been tested to death. (This is the major advantage to using CGI.pm.)

      --
      The hell with paco, vote for Erudil!
      :wq

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found