sub func{ die 'func takes 2 args' unless 2 == @_; my ( $arg1, $arg2 ) = @_; return sub { somesub($arg1,$arg2) if($joe) } } $a=&func( $somearg, $someotherarg ); # do stuff.. # call the function &$a;
In reply to RE: RE: Re: Dynamic Code?
by Adam
in thread Dynamic Code?
by kael
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |