develooper Front page | perl.perl5.porters | Postings from July 2005

Re: [perl #36538] perlfunc/our contradicts itself

Thread Previous
Yitzchak Scott-Thoennes
July 13, 2005 14:13
Re: [perl #36538] perlfunc/our contradicts itself
Message ID:
On Wed, Jul 13, 2005 at 02:08:07PM -0700, Michael G Schwern wrote:
> I think the thing to do is to reword the first statement such that it no
> longer declares our has no effect unless strict is on.
>   When C<use strict vars> is in effect, the C<our> declaration lets you
>   use the declared global variable without qualifying it with a package
>   name.

Wording looks good, but I'd prefer to see C<use strict 'vars'>.

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