in reply to Subroutines in Dispatch Tables

Oops... This is not correct.

How about something like this?
action => sub { print "aaa" },
to
action => \&{ print "aaa" },

Replies are listed 'Best First'.
Re^2: Subroutines in Dispatch Tables
by AnomalousMonk (Archbishop) on Sep 22, 2009 at 22:50 UTC
    >perl -wMstrict -e "my $cr = \&{ print 'aaa' }; $cr->();" Undefined subroutine &main::1 called at -e line 1. aaa