I can't figure out why that code even compiles. Assigning to chomp should result in the following error:
Can't modify scalar safe chop in scalar assignment...
But, this error doesn't occur when assigning to chomp if the argument to chomp is an assignment from a filehandle read. Some sort of obscure parsing bug...
Here's what your code should look like:
chomp(my $line = <>);
my $latin = Text::Bastardize->new();