From: Jarkko Hietaniemi Date: Mon, 6 Nov 2000 00:05:30 +0000 (+0000) Subject: Document that the evaled syntax errors cause scalar leaks. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5279fd7ba1c0606f1f1802003fcf0db6598304ff;p=p5sagit%2Fp5-mst-13.2.git Document that the evaled syntax errors cause scalar leaks. p4raw-id: //depot/perl@7569 --- diff --git a/t/comp/proto.t b/t/comp/proto.t index 9ac1e0f..31c7839 100755 --- a/t/comp/proto.t +++ b/t/comp/proto.t @@ -487,6 +487,9 @@ sub sreftest (\$$) { } # test prototypes when they are evaled and there is a syntax error +# +# NOTE: evaled syntax errors mean scalar leaks +# for my $p ( "", qw{ () ($) ($@) ($%) ($;$) (&) (&\@) (&@) (%) (\%) (\@) } ) { no warnings 'redefine'; my $eval = "sub evaled_subroutine $p { &void *; }";