[Developers] Empty regexp patterns in perl
Erik Schnetter
schnetter at aei.mpg.de
Thu May 12 09:53:54 CDT 2005
An empty regexp patterns matches everything. Perl makes this a special
case: if a string is matched against an empty pattern, then instead the
result of the last match is returned.
The CST stage needs to take this into account whenever a regexp pattern
is constructed from a variable. This happens e.g. when the default
value of string parameters is checked against the allowed ranges. I
introduced there a explicit check for an empty pattern.
There might be other places in the CST stage where regexp patterns are
constructed from variables. Please keep this special feature of perl
in mind.
-erik
--
Erik Schnetter <schnetter at aei.mpg.de> http://www.aei.mpg.de/~eschnett/
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from www.keyserver.net.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20050512/9b6c54ea/attachment-0002.bin
More information about the Developers
mailing list