-
Notifications
You must be signed in to change notification settings - Fork 559
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
Unsuppressable error/warning #7015
Comments
From [email protected]Created by [email protected]Normally I expect to be able to test a piece of perl code in an eval perl -wle '$a="5 + "; eval Giving: However, some syntax errors lead to unsuppressable warnings: perl -wle '$a="5 6"; eval It's not only the -w though. Even this doesn't suppress it: perl -Xle 'no warnings; $a="5 6"; eval I can catch it using $SIG{__WARN__} though, so it really is a warning. But anyways, I think it shouldn't be a warning in the first place, If it is kept as a warning, I think it should obey $^W/no warnings/-X Perl Info
|
From @rgsperl-5.8.0@ton.iguana.be (via RT) wrote:
I turned it into a mandatory warning (change 22068), i.e. it's BTW the warning on "elseif" had the same problem. |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
From @rgsRafael Garcia-Suarez wrote:
and BTW note that this warning is actually a complement to an error : $ ./perl -le 'eval"5 6";print "\$@=<<$@>>"' $ ./perl -Xle 'eval"5 6";print "\$@=<<$@>>"'
This one is really a warning. Using elseif as a bareword can be $ ./perl -le 'print STDOUT elseif' |
From [email protected]In article <20040105232341.270ab0b2.rgarciasuarez@_ree._r>,
Great. Thanks for your amazingly quick solution. |
From [email protected]In article <20040105231525.4b53eb1d.rgarciasuarez@_ree._r>,
The basic problem is now solved for me. Good. |
From @rgsTon Hospel wrote:
The warn() and the croak() are issued in different parts of the |
From [email protected]In article <20040106001110.544e6c76.rgarciasuarez@_ree._r>,
My first reaction was that you could make the warn() a croak() and perl -wle '$a="5 6; 7 8"; eval $a' Well, I'm surprised but at least I understand now :-) |
Migrated from rt.perl.org#24815 (status was 'resolved')
Searchable as RT24815$
The text was updated successfully, but these errors were encountered: