in reply to Re: Using eval for
in thread Using eval for
eval 'package Plugin; do $plugin'; - this creates a package which the 'plugin' is evaled into.
eval { no strict refs; &{'Plugin::func'}() } - disables strict refs for the enclosing' block', then calls func in the Plugin package?
%Plugin:: = () - I've never seen that before. I didn't know a package could be viewed in a sort of 'hash context'. So that sort of 'resets' the package to undef?
BTW, the title of the node should have been "Using eval for 'plugins'" but Everything seems to have removed it in the preview stage (maybe because it didn't escape single quotes properly?).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Using eval for
by chip (Curate) on Dec 28, 2001 at 04:40 UTC |