Read the linked documentation. If you don't want open to default to utf-8, then set PERL5OPT='-CS'
As for auto-detecting. There is no way for perl (or any other language) to determine the difference between an input file containing utf-8, and an input file containing arbitrary binary.
Indeed, there is no way to distinguish between utf-8 and utf-2 or utf-32 or arbitrary binary. In this respect the entire unicode standard is terminally broken.
In reply to Re^3: why no default unicode?
by BrowserUk
in thread why no default unicode?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |