in reply to Object Oriented Programming in Perl.
my ($package,$params) = @_; my $self = ( ref($params) eq 'HASH' ) ? $params : {};
As an aside, just Perl foibles of mine:
As for OO Perl books apart from Damien Conway's OO Perl.. sure there are;
however the Conway book is IMHO well worth reading instead of citing, get it from a library if you can't afford it.
If you find the reading tricky, that's because the topic is tricky.
If you wish to understand OO Perl conventions, better to read this book. In the mean time try:
--
Brother Frankus.
¤
|
---|