Hmm... in "simple terms" :-) i don't know if simplicity exists when telling the difference between our,my,local but here goes:
our --- * Is Global * $ABC::DEF::ghi is identical to our $ghi when in package ABC::DEF my/local -------- * my is very tightly scoped * my variables are _not available_ to _inner subroutines_ (NOTE: the phase _inner subroutines_ above, it is available to inner "blocks" - just not inner subroutines) * eg. sub abc { my $jjj = "hello world"; &def(); } $jjj will not be available to the "def" subroutine If you had had: sub abc { local $jjj = "hello world"; &def(); } $jjj would have been available to all inner blocks and subroutines including the "def" subroutine On Tue, 2003-01-21 at 14:11, Carlos Diaz wrote: > Can anyone explain in simple terms the difference between the three (my, > our, local). Especially the difference between my and local. Thanks... > > CD -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]