[Omaha.pm] RE: wrong

Jay Hannah jhannah at omnihotels.com
Thu Aug 26 11:35:40 CDT 2004


> my ($lname, $fname) = ($res->get_gst_name =~ /^(\w+)(,|\/)(\w+)$/);
> 
> what's wrong with this?
 

Ya. That's bad. The , or / will be stuck in $fname.

Perhaps:   #^(.*?)[,/](.*)$#

j





More information about the Omaha-pm mailing list