in reply to Comparing two files
will only change the first whitespaces into ' ' !!!$fullname =~ s/\s+/ /;
and try to change:$fullname =~ s/\s+/ /g;
intomy ($lname, $fname) = split('\s+', $record[5]);
otherwise you split the string with "\s+" as a delimiter, not with ' ' !my ($lname, $fname) = split( /\s+/, $record[5]);
Hope this helps..
----------------------------------- --the good, the bad and the physi-- -----------------------------------
|
|---|