in reply to Re: Small examples of string eval
in thread Small examples of string eval
But each of them knows when to eshew complicated eval-avoidance-schemes, in favour of simplicity.
merlyn See name_to_page() in CGI::Prototype::Hidden, new() in CGI::Prototype::Mecha, type() in File::Finder, the grammer for Inline::Spew.
TheDamian See import() in Attribute::Handlers, import() in Attribute::Types, install_dispatch() in Class::MultiMethods, initialise() & new() in Class::Std... I stopped here with D-Z to go.
Dominus memoize() in Memoize, in Memoize::AnyDBM_File, fill_in() inText::Template, TIEARRAY() in Tie::File.
And before anyone leaps to these authors defense, there is no need. String eval is a tool. Avoiding it where practical is common sense; eshewing at all costs is illogical.
I'm betting that Perl6 will retain string eval in some form.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Small examples of string eval
by spurperl (Priest) on May 14, 2006 at 03:59 UTC |