Re: Lifetime of my() variables

2006-02-28 Thread Jeff Pang
Tom is very right.It's a closure indeed.:-) -Original Message- >From: Tom Phoenix <[EMAIL PROTECTED]> >Sent: Mar 1, 2006 7:20 AM >To: Timothy Johnson <[EMAIL PROTECTED]> >Cc: beginners@perl.org >Subject: Lifetime of my() variables > >On 2/28/06, Tim

RE: Lifetime of my() variables

2006-02-28 Thread Timothy Johnson
An important distinction. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix Sent: Tuesday, February 28, 2006 3:21 PM To: Timothy Johnson Cc: beginners@perl.org Subject: Lifetime of my() variables On 2/28/06, Timothy Johnson <[EM

Lifetime of my() variables

2006-02-28 Thread Tom Phoenix
On 2/28/06, Timothy Johnson <[EMAIL PROTECTED]> wrote: > If you declare a variable with my(), it only exists within the current > scope Not to be too picky, but it's more accurate to say that it's the variable's *name* that's restricted to the given scope. The variable itself exists so long as th