haj was noting that the line
$last=$s/\s+//g; #clean it upshould be
$last =~ $s/\s+//g; #clean it upAre you able to provide some example data for others to test with?
Also, your code does not compile. The if ($last !~/\d/) {...} or if($last=~/[^/x00-\x7f]) {...} block should be if ($last !~/\d/) {...} elsif ($last=~/[^/x00-\x7f]) {...}
In reply to Re^3: unicode string comparison (perl 5.26)
by swl
in thread unicode string comparison (perl 5.26)
by md351
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |