This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
"fix bug; also prefix ?? matches with m due to 5.14 deprecation"
authorTom Christiansen <tchrist@perl.com>
Mon, 9 May 2011 02:42:54 +0000 (22:42 -0400)
committerJesse Vincent <jesse@bestpractical.com>
Mon, 9 May 2011 02:43:53 +0000 (22:43 -0400)
commit499a640db217d9e13779fabe08a7736127153ff3
tree8514eab573d2722c96d51157bd886f39a591d7a3
parentf5a93a43fe9802cca88dfd56d68a220ec6625118
"fix bug; also prefix ?? matches with m due to 5.14 deprecation"

I also fixed a bug in the original.  I'm always getting C<eof> vs C<eof()>
swapped in my brain, which is what had happened here.  The old code didn't
do what it said it did because it contrary to the comments didn't reset at
each eof -- because it used the C<eof()> form which is all of ARGV rather
than bare C<eof> for the last file read, and thus each per-file component
of ARGV.

I am concerned about the two paragraphs previous to that, because they
use eof() and I am not perfectly clear that they should.  But I left
them as is.

Jesse asked for "a lot of eyes", so if folks could please look at this
patch and see whether it looks ok, I'd appreciate it.  I did test it
under blead, both with and without the prefixed m on the m?? matches,
which is how I discovered it was buggy with the C<eof()> not C<eof>.

--tom
pod/perlsyn.pod