in reply to Re^2: Subroutines versus straight top to bottom scripts
in thread Subroutines versus straight top to bottom scripts

That depends entirely on the circumstances and what all the subs do. If, for example, you have a group of subs that all do one thing or another with a given set of data, then it could be worth the trouble to turn said set of data into an object and treat the subs that go along with it as methods but once again, that depends entirely on the context within which one is working. I myself almost exclusively use OO style perl but that just so happens to be because the things I generally work with can easily be translated to an OO style of thinking. Could you elaborate a bit on what kind of subroutines we're talking about?


Remember rule one...
  • Comment on Re^3: Subroutines versus straight top to bottom scripts