Ovid <[EMAIL PROTECTED]> writes: > Hi all, > > Sometimes the CPAN doesn't provide the trivial things I need. For > example, I am often doing something conceptually similar to this: > > sub foo { > my $args = shift; > croak $message unless is_deeply [sort keys %$args], [EMAIL PROTECTED]; > foreach (@default) { > $args->{$_} = $some_default unless exists $args->{$_}; > } > croak if extra_keys($args);
I may be off-base because you are calling extra_keys() and I don't see it defined, but in principle, whatever you upload should have the exception-like action abstracted so people can take whatever action they want? And list the offending data? Or perhaps their exception-like action should be abstracted into $SIG{__DIE__} already? -- Carter's Compass: I know I'm on the right track when, by deleting something, I'm adding functionality.