New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`syntax error' message not trapped by $SIG{__DIE__} #1504
Comments
From @mjdominusCreated by @mjdominusHere's a sample program: #!/usr/bin/perl sub foo { BEGIN { $SIG{__DIE__} = \&foo } 1+(2*3; When run with 5.005_03 or 5.6.0, this yields: syntax error at test.pl line 5, near "3;" I want the `syntax error' message to be trapped also. The discussion `__DIE__'/`__WARN__' handlers are very special in Perl Info
|
From [Unknown Contact. See original ticket]mjd@plover.com writes:
Did you try setting __WARN__ handler? Or maybe you want your Perl Ilya |
From [Unknown Contact. See original ticket]Ilya Zakharevich wrote:
It was changed for strict warnings so that they can be caught in eval. use strict; now prints "Caught:[Global symbol..." etc. Much nicer than before. ...searching perldelta... =head2 All compilation errors are true errors Some "errors" encountered at compile time were by neccessity The mechanism for reporting such errors has been reimplemented I infer from this that $SIG{__DIE__} should also now be getting all -- |
From @floatingatoll[mjd@plover.com - Sat Mar 25 14:25:36 2000]:
This issue appears to have been resolved, as of the 5.8/5.9 development track: TRAPPED MESSAGE syntax error at 2718.pl line 12, near "3;" Thanks for the bug report! - R. |
@floatingatoll - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#2718 (status was 'resolved')
Searchable as RT2718$
The text was updated successfully, but these errors were encountered: