SPUG: Perl and OO and Unit Testing

Asim Jalis asimjalis at yahoo.com
Sun Jul 21 18:58:45 CDT 2002

I have recently been playing with Perl again. I
lay the blame for this on Damian's talk. 

For some reason writing unit tests in Perl feels
really weird. I feel like Perl code is simply not
supposed to be OO in the same way as Python and
Java are. OO at the same fine granularity seems
wrong in Perl somehow.

Whenever I start writing Perl with tiny trivial
objects -- the way Java and Python make you do --
I feel like I am being stupid and un-Perl-ish.
This is how I feel when I use any of the OO
techniques in Damian's book.

Part of it is that Perl is built around this idea
that you want to work on giant trees of data
containing hashes/arrays of hashes/arrays many
levels deep.

While Java/Python objects are usually structs of
some kind Perl objects are more naturally giant
trees of hashes and arrays interspersed with each

Any ideas?


Do You Yahoo!?
Yahoo! Health - Feel better, live better

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org

More information about the spug-list mailing list