Jabez Wilson wrote: Hi Jabez,
Please don't top-post. That makes it harder to follow the flow of converstation. Inseat, move to the end of the material you are addressing. Cut out anything that doesn't relate to your response, andf then write following the material you are responding to. > Well your example is a fairly common one and gets a lot of attention in > the Mastering Regular Expressions book ... > > http://danconia.org > > Thanks for all the responses. I have looked at Jeffrey Friedl's book and it explains > it very well, except I now do not understand why ip=123.3.21.223 is not allowed. Or > am I misunderstanding something trivial? That is because '123.3.21.223' is a string, not a number. It does represent the number 2063799775 when translated from the dotted decimal format, but Perl does not do this translation automatically. The only way it can take in the whole value as a single scalar value is as a string, quoted '123.3.21.223' or double-quoted "123.3.21.223". Use the single quotes, though, unless you need Perl to interpolate variables or character escapes within the string. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
