in reply to Re^2: Chomp doesn't work
in thread Chomp doesn't work

Why is it recommend not "use locale"?

Do you know what "use locale" does, its purpose/function? In other words have you read locale/perllocale?

See use locale broken?, About \d \w and \s, https://metacpan.org/module/perllocale#SECURITY