in reply to Re: when to use subroutine
in thread when to use subroutine

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..

Replies are listed 'Best First'.
Re^3: when to use subroutine
by chromatic (Archbishop) on Oct 28, 2007 at 21:03 UTC

    The Pragmatic Programmer, The Practice of Programming, and Refactoring are three separate books. All three are worth reading (and they should be easier to find now).

      indeed, thank you