On Fri, Jul 6, 2012 at 11:20 AM, demerphq <demerphq@gmail.com> wrote: > > Not so. Equally new var there. A variable is an association between a > name > > and an address. "state", "our", and "my" equally create variables. > > our doesnt create anything. > Yes it does: >perl -E"$x = 123; package Foo; say $x" >perl -E"our $x = 123; package Foo; say $x" 123 It creates a lexically-scoped variable which is identical to $main::x (in the above example). Remember, a variable is an association between a name and storage. "our" does exactly that.Thread Previous | Thread Next