>>>>> "Stas" == Stas Bekman <[EMAIL PROTECTED]> writes:

Stas> Note that Perl 5.6.0 introduced a new our() pragma which works like
Stas> my() scope-wise, but declares global variables.

Stas>   package MyPackage3;
Stas>   use strict;
Stas>   our @ISA = qw(CGI);
Stas>   our $VERSION = "1.00";
Stas>   1;

Stas> which uses the same amount of memory as a fully qualified global
Stas> variable:

Stas>   % perl -MGTop -MMyPackage3 -le 'print GTop->new->proc_mem($$)->size'
Stas>   1908736

You still need a note there that says that 5.6.0 is considered unusable
by conservative sysadmins, and until 5.6.1 has reached gold, you
should avoid using "our".

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to