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

[perl #78348] => search too weak

Thread Previous
From:
Father Chrysostomos via RT
Date:
June 29, 2012 09:35
Subject:
[perl #78348] => search too weak
Message ID:
rt-3.6.HEAD-28836-1340987693-855.78348-15-0@perl.org
On Sun Jan 22 15:28:05 2012, rjbs wrote:
> I think it's reasonable to reduce the number of places where the kind of
> white space determines the otherwise unambiguous parse.  This might not
> be a critical code-ruining bug, but it would be nice to see improved.

This really *is* a bug.  It behaves as expected inside /(?{ ... })/ or a
string eval (without source filters), but not in code coming from a
file.  An internal implementation detail (the token buffer) is leaking
through.

These are both valid:

/(?{
{ foo
=> 1}->${\sub{print @_ }}
})/;

eval '
{ foo
=> 1}->${\sub{print @_ }}
';


-- 

Father Chrysostomos


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

Thread Previous


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