Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I have to say this post is a really awesome opportunity for intelligent discussion. When I started programming in perl about 6 years ago, I ran across ppl who only saw it was a "Scripting Language". I started out in that context, but as I learned more and more, I became slightly annoyed that perl had to carry the label of "Scripting Language". Its like calling a Damascus Steel, Full Tang, Hand Forged Samarui Sword a "letter opener". Sure, it _CAN_ open letters, but in the hands of an experienced user, it really is a beautiful thing.

I began doing a lot of CGI. I started out just using CGI.pm for parameter parsing and using heredocs with html all over the place. Of course, at this point I began using the DBI as well. Over the years, I became disgusted at how hard to maintain heredoc generated code was. I was also using perl for a lot more than just CGI/DBI stuff. I was using it to communicate with a modem over the serial interface (Device::SerialPort) in complex daemon programs that had to watch memory usage and clean up after children. Then I picked up Damian Conway's amazing book, Object Oriented Perl and I began to develop modules for use with my daemons on the backend and my CGI interfaces. I found it easier to make my own cgi module that housed some fairly repetitive code that I could jsut reference across my many CGI interfaces. Around the time even this became tedious, my job fell out from underneath me and I no longer had all of the perl code to maintain.

I'm finally back into a position where I'm going to be doing a lot of perl, and as such, I'm going to start looking into Template::Toolkit and HTML::Mason. I highly recommend that you learn OO perl and the concepts behind it and that you immediately start looking into Template::Toolkit or HTML::Mason if you haven't already. There is far more to perl than I'll ever be able to digest, but I'm not gonna stop stuffing my face with all its goodness.

Bottom line, if you ever think "hey, this shoudl be easier". Perl either already has something to make it easier (most of the time on the CPAN) OR it provides the necessary building blocks to make your life easier. That is something I have looked for in other languages, and never found.

-brad..

In reply to Re: Life beyond CGI and DBI by reyjrar
in thread Life beyond CGI and DBI by punchcard_don

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (2)
    As of 2019-09-15 07:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      The room is dark, and your next move is ...












      Results (178 votes). Check out past polls.

      Notices?