for my $plugin (...) { eval 'package Plugin; do $plugin'; # check for $@ here eval { no strict refs; &{'Plugin::func'}() } if ($@) { ...error.handling... } %Plugin:: = () }
The soft reference is required to defeat the compiler's attempt to hold a pointer to *Plugin::func.
-- Chip Salzenberg, Free-Floating Agent of Chaos
In reply to Re: Using eval for
by chip
in thread Using eval for
by SuperCruncher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |