On Apr 9, 2008, at 4:14 PM, David Nicol wrote:
> as I understand it the best practice for readability is
>
> param_test(tom => "somestring", george => "anotherstring", ref =>
> [EMAIL PROTECTED]);
>
> sub param_test {
> my %args = @_;
> croak <<INSTRUCTIONS unless 3 == grep { exists $args{$_}} qw/tom
> george ref/;
> please refer to thread on KCLUG mailing list
> INSTRUCTIONS
> ...
Roughly, yes, but Params::Validate encapsulates all that.
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc