in reply to Re: Pass sub reference
in thread Pass sub reference
... sub yyy { my $func = shift; $func->(); } yyy( sub { xxx("foo", 42) } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pass sub reference
by AnomalousMonk (Archbishop) on Oct 29, 2010 at 00:59 UTC |