You could use the same trick we use for fooling dynaloader or Oracle:
BEGIN { if( ! $ENV{PERLIO} ) { $ENV{PERLIO}= ":utf8"; exec $^X, $0, @ARGV; } }
- tye
In reply to Re^3: Using binmode on ARGV filehandle? (exec)
by tye
in thread Using binmode on ARGV filehandle?
by graff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |