http://www.perlmonks.org?node_id=990988


in reply to How can I get a Unicode @ARGV?

An alternative might be to place the unicode text in a file and then drop that file name on your executable. It would then be staight forward to read the unicode text via:

open(my $F, "<:encoding(UTF-8)", $f) or die "Cannot open $f for unic +ode input";