Grokbase
Topics Posts Groups | in
x
[ help ]

Re: Too late for -Co

View PostFlat  Thread  Threaded | < Prev
A. Pagaltzis Re: Too late for -Co
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* Alberto Simões <albie@alfarrabio.di.uminho.pt> [2008-03-25 22:35]:
> I had some CGI scripts using
> #!perl -CoO
>
> Now, with perl 5.10.0 I can't do that.
>
> What is the preferred solution?

    use open OUT => ':utf8', ':std';

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread : Too late for -Co
1)
Alberto Simões Hi, Folks. I had some CGI scripts using #!perl -CoO Now, with perl 5.10.0 I can't do that. What is...
2)
Nicholas Clark IIRC it didn't ever actually work on 5.8.x. (If so) if you take it out, does anything change?...
3)
Alberto Simões It worked with 5.8.8 ...
4)
A. Pagaltzis Hi Nicholas, no, it’s the kernel that does that, automatically. The shell has nothing to do with...
5)
Alberto Simões using binmode STDOUT, ":utf8" Thanks > ambs...
6)
A. Pagaltzis use open OUT => ':utf8', ':std'; Regards,
spacer
View PostFlat  Thread  Threaded | < Prev
Home > Groups > Perl 5 Porters > Too late for -Co (6 posts) > View Post