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

[Omaha.pm] RE: wrong



> 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