... sub yyy { my $func = shift; $func->(); } yyy( sub { xxx("foo", 42) } ); [download]
In reply to Re^2: Pass sub reference by Anonymous Monk in thread Pass sub reference by vit