my bad.
JD was right, ';' is a statement separator.
{ print hi\n }
is fine.
{ eval {..} print hi\n } is not- the eval{..} needs a semi colon
after it.
-r
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe:
John Deighan wrote:
Consider this simple program:
use strict;
use warnings;
eval {
my $x = 5;
my $y = $x / 0; # simulate an error
};
if ($@) {
eval { # ignore errors in this code
print(An error occurred\n);
}
};
Try:
Joseph Discenza [EMAIL PROTECTED] wrote:
Simple operations on constants are probably performed at compile
time (not an internals guru) even within an eval block. Someone
else would have to explain to you why all parsing of the eval
block is not delayed until runtime.
Presumably because you