T
Thelma Lubkin
I am trying to compare two strings that must match except for their
spacing.
If I write:
$h1 = 'here i am';
$h2 = 'herei am';
can I do a less clumsy comparison than
($hh2 = $h2) =~ s/\s//x;
if($hh2 =~ /^$h1$/x) ...
--thanks, thelma
spacing.
If I write:
$h1 = 'here i am';
$h2 = 'herei am';
can I do a less clumsy comparison than
($hh2 = $h2) =~ s/\s//x;
if($hh2 =~ /^$h1$/x) ...
--thanks, thelma