Help for this page
sub increment { my ( $number, $incval ) = @_; ... while ( my $result = $action->() ) { print "$result\n"; }
sub do_something { my $action = shift( @_ ); ... while ( my $result = $action->() ) { # <-- The error happens here print "$result\n"; }