Chas. Owens wrote:
A regex in scalar context returns a 1 if it matches and a 0 if it doesn't.
Not quite. A failed regex match returns the null string '', not a zero value. It is of course still false for boolean tests. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/