in reply to RE: Re: Dynamic Code?
in thread Dynamic Code?
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;
|
|---|