If you don't use my then they by default become 'global' vs local
(known within a call or block.
More to it than this, but that is one of main gists.
Wags ;)
-----Original Message-----
From: Troy Parry [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 21, 2000 08:22
To: Perl-Win32-Users Mailing List
Subject: When to use MY statements in PERL scripts?
Can anyone tell me the purpose of using 'MY' in perl scripts?
eg, MY $test=$mw->Button;
The perl book I have doesnt mention it at all, and the "Learning Perl/Tk"
book by O'Reilly doesnt expain either! It just starts using it without a
reason.
Troy Parry
IBM Global Services Australia
[EMAIL PROTECTED]
---
You are currently subscribed to perl-win32-users as:
[EMAIL PROTECTED]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]