sub do_pkg_need_from_Dist($$$$) {
with
my $do_pkg_need_from_Dist = sub {
and then replace the calls to
do_pkg_need_from_Dist()with
$do_pkg_need_from_Dist->()and then everything will work out as you expect.
In reply to Use: my $var = sub { };
by Anonymous Monk
in thread Perl scoping not logical...?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |