in reply to Re^2: unicode string comparison (perl 5.26)
in thread unicode string comparison (perl 5.26)
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]) {...}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: unicode string comparison (perl 5.26)
by AnomalousMonk (Archbishop) on Nov 01, 2019 at 19:24 UTC |