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)
In reply to Re: New module review: KalturaAPI
by jeffa
in thread New module review: KalturaAPI
by jellisii2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |