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.
eval{} has its points... (Score:1)
>This sucks the most. It work as long as $data is
>callable and returns something true. (It could be
>tweaked to work as long as it's callable, but would
>get even uglier and no better.)
IMO It gets a little better:
my $result;
if (eval { $result=$data->(); 1 }) {
}
Re:eval{} has its points... (Score:1)
rjbs
Reply to This
Parent