in reply to Need Help Refactoring Method Calls
my $meth = My::Class::XXX->can( 'new' ); my $method = sub { $meth->( 'My::Class::XXX', @_ ); };
If you don't understand that syntax, don't use it. If you do, that's how you take a reference to a method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need Help Refactoring Method Calls
by merlyn (Sage) on Feb 02, 2006 at 17:07 UTC |