NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
String eval == source code generation != eval { (Score:1)
eval-block isn't the same thing as eval-string and you probably shouldn't think of them as related. The former is used when you're creating new source code on the fly and want to run it. The latter is when you want to trap die().
It's the same word but they aren't related. They share the variable $@/$EVAL_ERROR and both trap die() but that's incidental.
Replacements for string-eval are often dispatch tables, curried functions, closures, that kind of thing. The following is an example of something that can b
Re: (Score:1)
Re:String eval == source code generation != eval { (Score:1)
die $@ if $@;after that statement?Reply to This
Parent
Re: (Score:1)