[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Any way to Tee in MacPerl?



According to Bart Lateur:
> 
> On Fri, 13 Feb 1998 13:16:00 -0600 (CST), Mark Manning/Muniz Eng. wrote:
> 
> >Which means the local command only makes the variables
> >global to those routines which are contained with the
> >routine which created them.  Not global to all programs.
> 
> Wrong phrasing. "local" variables are accessible in all subs CALLED from
> within your block. "my" variables are not.

A routine can only be called from a subroutine if it is
contained within it.  :-)

But as Chris has pointed out - a LOCAL variable actually is
a global variable.  It is just that the value of the
variable is pushed onto a hidden stack before usage is
granted within the routine it is placed.  And as you have
pointed out, MY variables truly are local to only the
routine they are in. :-)

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch