I have something like this (it works):
perl -C -MText::Unidecode -n -i -e'print unidecode( $_)' unicode_text.txt and now i want to do the same in the script:
#!/usr/bin/perl -w -CSA use utf8; use Text::Unidecode; while(<>) { print unidecode($_); } but it doesn't work.
use strict;.use utf8serves no purpose here: you don't use utf-8 characters in the code.#!/usr/bin/perl -w -CSAproduces an error message:Too late for "-CSA" option at......I believe the-CSAcan be replaced in the script withuse open ':encoding(utf8)';.