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

Re: [MacPerl] matching a $




You might also try:

if (($fName =~ /^([^\d\s]+)$/) &&
   ($lName =~ /^([^\d\s]+)$/)) {

which eliminates an alternation.

-dave

> 
> if (($fname !~ /^\s+$|\d+/) &&
>     ($lname !~ /^\s+$|\d+/)) {
> 


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