> > But the C one works fine. Why? Because myint's been lexically declared! > > Sure. But you omitted the same lexical declaration in the Perl code. > The C example has > > int myint; > > at the outer scope. If you added > > my $myint; > > at the same place in the Perl code, it would do the same thing. Exactly, this was actually my point. my() acts as a lexical declaration. -Nate
- Re: RFC 16 (v1) Keep default Perl free of co... Peter Scott
- C<strict> as default (was Re: RFC... Daniel Chetlin
- Re: C<strict> as default (was... J. David Blackstone
- Re: C<strict> as default (was... mjd-perl-list-language-strict
- Re: C<strict> as default ... Nathan Wiger
- Re: C<strict> as defa... mjd-perl-list-lang-strict
- Re: C<strict> as... Nathan Wiger
- Re: C<strict>... mjd-perl-list-language-strict
- Clarification on Defau... Nathan Wiger
- Clarification on Defau... Nathan Wiger
- Re: Clarification ... Mark-Jason Dominus
- Re: Clarificat... Peter Scott
- Re: Clarification ... mjd-perl-list-language-strict
- Re: Clarificat... Ted Ashton
- Re: Clarificat... Bart Lateur
- Re: Clarificat... Ted Ashton
- Re: Clarificat... Bart Lateur
- Re: Clarificat... Monty Taylor
- Re: C<strict> as default ... Nathan Wiger
