- or download this
$template->param(
some_var => 10,
(some_var => $hash{some_possibly_undefined_key}) x!! exists($hash{so
+me_possibly_undefined_key}),
);
- or download this
$template->param(
some_var => exists $hash{some_possibly_undefined_key} ? $hash{some_p
+ossibly_undefined_key} : 10;
);
- or download this
{
package MyTemplate;
...
$self->SUPER::param(%p);
}
}