http://www.perlmonks.org?node_id=1143838


in reply to New module review: KalturaAPI

Why not simplify the constructor to only worried about defaults and handling more complex assignments on behalf of the client:

sub new { my ($class, $params) = @_; $params->{sessionType} = $KalturaAPI::SESSION_TYPE{lc($params->{se +ssionType})}; $params->{format} ||= 'xml'; return bless $params, $class; }

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)