in reply to Re^2: what is sub {1;}
in thread what is sub {1;}
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.)
|
|---|