On Jul 21, 2005, at 3:17 PM, A. Pagaltzis wrote:
* Chris Dolan <[EMAIL PROTECTED]> [2005-07-21 22:05]:
What's the minimum version of Perl needed to reliably exploit the (?{
code }) feature in regexps?

You can check at <http://search.cpan.org/dist/perl/>. The first
version where pelre documents this feature is 5.005.

Though as far as “reliably” is concerned: it has never lost its
“experimental” status. Even if I doubt that it would be removed
from Perl5 at this point.

Thanks, Aristotle.

After checking that URL, I've confirmed that 5.005 probably *could* work, but I've successfully tested my module on 5.6.0 and called that good enough (since I use "our", etc). I've uploaded Net::IP::Match::Regexp to CPAN.

Yes, I see your point about the experimental status. Well, it's the only way I could think of to implement varying return values via the regexp. I'm using only the most basic aspect of the (?{code}) feature, so I'm safe unless someone takes $^R away from me. :-)

Chris
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703

Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-landscape.com/) and partners in the revolutionary Croquet project (http://www.opencroquet.org/)

Reply via email to