Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pp_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2388,7 +2388,7 @@ PP_wrapped(pp_caller, MAXARG, 0)
mPUSHs(newSVsv(cx->blk_eval.old_namesv));
PUSHs(&PL_sv_yes);
}
/* eval BLOCK (try blocks have old_namesv == 0) */
/* eval BLOCK (eval blocks have old_namesv == 0) */
else {
PUSHs(&PL_sv_undef);
PUSHs(&PL_sv_undef);
Expand Down
4 changes: 2 additions & 2 deletions t/op/goto.t
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ FORL2: for($y=1; 1;) {
goto FORL2;
}

# Does goto work correctly within a try block?
# Does goto work correctly within a eval block?
# (BUG ID 20000313.004) - [perl #2359]
my $ok = 0;
eval {
my $variable = 1;
goto LABEL20;
LABEL20: $ok = 1 if $variable;
};
ok($ok, 'works correctly within a try block');
ok($ok, 'works correctly within a eval block');
is($@, "", '...and $@ not set');

# And within an eval-string?
Expand Down
Loading