Off the top of my head :)
It should work the way you expect if you change to
my $callback = sub { ... }; HTML::LinkExtor->new($callback);
FWIW, you probably got some warnings about this (will not stay shared)
Re: Entry Edit Refresh (nested subs and closures)
In reply to Re: HTML::LinkExtor weirdness (scoping closures nested named subs)
by Anonymous Monk
in thread HTML::LinkExtor weirdness
by skazat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |