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

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

Thread Previous
From:
Father Chrysostomos via RT
Date:
November 5, 2010 08:39
Subject:
[perl #78828] Document "perl -Cio" scoping
Message ID:
rt-3.6.HEAD-4263-1288971573-1836.78828-15-0@perl.org
On Fri Nov 05 05:20:09 2010, ntyni@debian.org 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 http://bugs.debian.org/373698
> 
> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About