The code ref itself can require any modules it needs, eg:my $signature = $custom_coderef ? $custom_coderef->() : default_sig();
my $coderef = sub{ require Foo::Bar; my $signature = "blah"; return $signature; }
In reply to Re^3: How do you say, in Perl....
by oxone
in thread How do you say, in Perl....
by willymacoy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |