The string form of eval does not catch errors.
You sure about that? 'perldoc -f eval' doesn't seem to agree with this and when I run:
perl -we 'eval q(my $bad_syntax = ;); if ($@) { print "Caught error.\n" }'
I get:
Caught error.
Also, you might want to embed \n in your eval strings; I find that it is very helpfull in finding errors as you will get errors with line numbers.
Thanks for the tip.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>