[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] matching a $



At 22:01 -0700 1999.08.26, gene.ray@excite.com wrote:
>if ( ($fname=~/(\D\S)*/)  &&
>     ($lname=~/(\D\S)*/)  ) {

You are allowing it to match zero-length, so these regexes will _always_ match.

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org