Hello Friens,
I have a eval block and some if conditions within it and I would like to exit the eval block. i.e
You can use die or goto:
#!/usr/bin/perl
use strict; use warnings;
eval { if (0) { print 'false' } if (1) { goto end_eval } };
print "before eval\n";
end_eval: print "after eval\n";
Regards, Randy.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>