- or download this
sub somefunc {
my($self, $context) = @_;
...
# I can work with $form
...
}
- or download this
sub is_hash {
my($hash, @keys) = @_;
...
return $yes ? $hash : $yes;
}
- or download this
return 1
unless my $form = is_hash($self->{config}, 'key1', 'context', $conte
+xt, 'form');
- or download this
$somedata, $key1, $key2, $idx3, $key4 ....;
- or download this
my $wanted = 'CODE';
# if key3 has a value but not a CODE ref, it croaks
my $code = thefunc($somedata, $wanted, 'key1', 'key2', 'key3');
$code->(@someargs);