thank you all,
I think I definitely need to read up more on how to design the code and think like programmer in general before going into more complicated stuff in perl(mainly OO subject).
Perl is awesome language for me because it would allow me to do amazing stuff at work that I wouldn't even dream'd of getting it done w/out it. Now that I took upon myself to write bit more complicated code at work, I see that lack of general computer science background is coming back to haunt me.

It is something I feel I would like to study further on before digging deeper into the perl.(as this is really my first computer language). I just ordered "Pascal, an introduction to the art and science of programming" per someone's recommendation on the forum and also I would like to look into the book "The Pragmatic Programmer, The Practice of Programming, and Refactoring" Brian recommended(but it wasn't on amazon nor my collection of libraries' so I will have to dig deeper).

My biggest problem is that I too also try to learn by reading someone's code but sometimes I wonder why such a simple operation(those one liner sub routine) would require its own function. "How a script becomes a module" was excellent reading for me and sort of gave me more insight to other's thoughts.
Thank you again and back to the reading..

In reply to Re^2: when to use subroutine by convenientstore
in thread when to use subroutine by convenientstore

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, details, 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, summary, 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.