It allows
to be simplified tomy $rv = $args{'Post'} ? $args{'Post'}->() : 1;
my $rv = $args{'Post'}->();
Or if the return value isn't checked, it allows
to be simplified to$args{'Post'} and $args{'Post'}->();
$args{'Post'}->();
(sub{} would have been sufficient in the latter case.)
In reply to Re^3: what is sub {1;}
by ikegami
in thread what is sub {1;}
by mlgvalt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |