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

[perl #109206] regexes: . different from [^\n]

Thread Previous
From:
Father Chrysostomos via RT
Date:
January 27, 2012 08:42
Subject:
[perl #109206] regexes: . different from [^\n]
Message ID:
rt-3.6.HEAD-14510-1327682516-925.109206-15-0@perl.org
On Fri Jan 27 07:33:32 2012, demerphq wrote:
>  /* turn .* into ^.* with an implied $*=1 */
> 
> I have to admit I have not checked to see what the heck $*=1 means.

$* doesn’t do anything anymore, unless you are using Classic::Perl.

$* = 1 puts /m on every match in 5.8, bugs aside.

What the comment means exactly by implied $*=1 I don’t know.  Is it
referring to /^/ meaning /^/m in split?  But that couldn’t be right.


-- 

Father Chrysostomos


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

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