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
From:
Nicholas Clark via RT
Date:
July 25, 2012 09:03
Subject:
[perl #4821] [BUG all] 'die qr{pattern}' does not check termination
Message ID:
rt-3.6.HEAD-11172-1343232180-1801.4821-15-0@perl.org
On Sat Dec 02 12:13:26 2000, hv@crypt.compulink.co.uk 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}'
(?-xism: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
https://rt.perl.org/rt3/Ticket/Display.html?id=17763#txn-40043

: 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
syslog().

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

Nicholas Clark


---
via perlbug:  queue: perl5 status: resolved
https://rt.perl.org:443/rt3/Ticket/Display.html?id=4821

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About