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

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

Thread Previous
From:
Yitzchak Scott-Thoennes
Date:
July 13, 2005 14:13
Subject:
Re: [perl #36538] perlfunc/our contradicts itself
Message ID:
20050713211335.GA3876@efn.org
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


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