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

[perl #108780] overload::StrVal and qr//

Thread Previous
From:
Father Chrysostomos via RT
Date:
January 22, 2012 15:53
Subject:
[perl #108780] overload::StrVal and qr//
Message ID:
rt-3.6.HEAD-14510-1327276390-984.108780-14-0@perl.org
On Sun Jan 22 14:51:39 2012, sprout wrote:
> 
> On Jan 22, 2012, at 2:37 PM, yves orton via RT wrote:
> 
> > One might almost argue this a regression from when qr//
> > objects where turned into first class SV types.
> 
> 
> $ perl5.6.2 -le 'use overload; print overload::StrVal qr//'
> Regexp=SCALAR(0x800264)

I should have added:

$ perl5.10.1 -M-overloading -le 'print qr//'
(?-xism:)
 
> It seems they have always been weird.
>
> Is the overloading pragma new enough to change without breaking
> things?



-- 

Father Chrysostomos


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