[Kc] way to save the regex that empty regex would match

David Nicol davidnicol at gmail.com
Thu Feb 16 13:10:43 PST 2012


Looking at perldoc perlvar I'm a little surprised that there isn't
already something like $^LAST_SUCCESSFUL_REGEX because Perl does keep
that around, for use in m//.

I've just proposed that qr// prise that out of the innards and return
it, which is clumsier
than a designated special variable.

Is anyone aware of one, on or off of CPAN?

-- 
on the outside of the bottom of the barrel, that's how much of an outlier it is.


More information about the kc mailing list