in reply to Web based perl REPL
my $sub = sub { print "hello\n"; }; $sub->(); [download]
Cheers - L~R