|
|
| more useful options | |
| PerlMonks |
Re^3: Passing subroutine as argument between packagesby chromatic (Archbishop) |
| on Nov 30, 2011 at 18:25 UTC ( #940917=note: print w/ replies, xml ) | Need Help?? |
|
Given: my $ref = sub { $FooConfig->important_func( '1', @_ ) };... then you can write: $ref->( 'more', $args, %here );... though be cautious and understand how the function reference passes its arguments to the inner function. Improve your skills with Modern Perl: the free book.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||