develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #4821] [BUG all] 'die qr{pattern}' does not check termination

Thread Previous | Thread Next
Nicholas Clark via RT
July 25, 2012 09:03
[perl #4821] [BUG all] 'die qr{pattern}' does not check termination
Message ID:
On Sat Dec 02 12:13:26 2000, wrote:
> With 5.6.0 for example:
>   crypt% perl -we 'die qr{x}'
>   (?-xism:x)crypt%
> should be the same as:
>   crypt% perl -we 'die "(?-xism:x)"'
>   (?-xism:x) at -e line 1.
>   crypt%

With 5.8.1 for example

$ ~/Sandpit/581/bin/perl -e 'die qr{x}'

contrast with 5.8.0

$ ~/Sandpit/580/bin/perl -e 'die qr{x}'
(?-xism:x) at -e line 1.

so this certainly isn't *resolved*, which was its status in RT.
(It might, however, effectively be rejected)

The fix for this bug was reversed in commit bf12611a95159ce0, due
to bug #17763.

See this comment from Hugo in

: I'm not sure how we can improve on this. The best suggestion I can come
: up with off the top of my head is to attach the error location information
: via magic, and let util.c:vdie() extract it; but that wouldn't cater for
: those that want the upgraded string for other purposes, such as for

It's not clear how to resolve both #17763 and #4821 at the same time.

Nicholas Clark

via perlbug:  queue: perl5 status: resolved

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About