develooper Front page | perl.perl5.porters | Postings from November 2010

[perl #78828] Document "perl -Cio" scoping

Thread Previous
Father Chrysostomos via RT
November 5, 2010 08:39
[perl #78828] Document "perl -Cio" scoping
Message ID:
On Fri Nov 05 05:20:09 2010, wrote:
> While the other -C settings are global, "i" and "o" only affect
>    subsequent
> open() calls in the current file. This seems to be working as
>    designed,
> judging by the names HINT_LEXICAL_IO_IN and HINT_LEXICAL_IO_OUT in
> the code, but it's not currently documented and may cause surprising
> behaviour.
> The attached suggested patch documents the scoping and adds two tests
> to make sure the documented behaviour doesn't change accidentally.

Thank you. Applied as 88770b4.

> Reported by Joey Hess in
> Also reported by Frank Krout as [perl #23199], which was closed
>    because
> "the -C option on the shebang line is no longer supported."

See also [perl #67880].

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About