in reply to Re (tilly) 3: I need a simple explantion of the difference between my() and local() (discussion)
in thread I need a simple explantion of the difference between my() and local()
In fact, I'm teaching a Perl class where I work, and I finally got around to demonstrating my() today. And this was my 11th class. (After all, I had to discuss how to use variables and write blocks of code, before I got into making variables private!) Although I didn't show them the local() command today, I probably will soon -- with an introduction just like deprecated used.
And I believe that deprecated's post worded the situtation wonderfully. An absolute beginner would know to leave the local() function alone, but the description was also precise enough that others might learn even more. It doesn't hurt to be precise, as long as an explanation doesn't become too confusing. In this case, I thought it was pretty darned clear.
buckaduck
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 5: I need a simple explantion of the difference between my() and local() (discussion)
by tilly (Archbishop) on May 04, 2001 at 01:44 UTC | |
by buckaduck (Chaplain) on May 04, 2001 at 02:03 UTC | |
by tilly (Archbishop) on May 04, 2001 at 21:27 UTC |