Grokbase
Topics Posts Groups | in
x
[ help ]

Re: [perl #59652] "Too late for "-CS" option"

View PostFlat  Thread  Threaded | < Prev - Next >
A. Pagaltzis Re: [perl #59652] "Too late for "-CS" option"
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
* <simon.perreault@viagenie.ca> [2008-10-07 10:50]:
> $ cat >test.pl
> #!/usr/bin/perl -CS
> print "hello world\n";
> $ chmod +x test.pl
> $ ./test.pl
> Too late for "-CS" option at ./test.pl line 1.
> $

This is not a bug in perl, it’s a bug in your shebang line. The
fact that this used to work was a bug in perl that has since been
fixed. The correct incantation for what you want to achieve is

    use open qw( :std :encoding(UTF-8) );

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

Thread : [perl #59652] "Too late for "-CS" option"
1)
Kevin Wolf # New Ticket Created by simon.perreault@viagenie.ca # Please include the string: [perl #59652] # in...
2)
A. Pagaltzis This is not a bug in perl, it’s a bug in your shebang line. The fact that this used to work was a...
3)
Nicholas Clark It's not a bug in that it's behaving as documented. But, arguably it is a bug, because it could be...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >