![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Bug in perl -C (Unicode) option parsing?by benizi (Hermit) |
on Feb 13, 2007 at 04:22 UTC ( #599630=perlquestion: print w/replies, xml ) | Need Help?? |
benizi has asked for the wisdom of the Perl Monks concerning the following question: Today I came upon a quirk (bug?) of shebang/hash-bang line argument parsing. Past experience (and perlrun) tells me that perl (lowercase) parses commandline options from the shebang line:
So, why do I get the wide-character warning in the following:
Even more mysteriously, it seems the -CDS is getting applied (as seen by testing ${^UNICODE}), but not to STDOUT:
Is this a bug? If so, is it merely a documentation bug? (need a warning that -C doesn't get applied in time to affect STD(IN|OUT|ERR) if it's in a shebang?)
Back to
Seekers of Perl Wisdom
|
|