aswingeo has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl package 'A' in which i have defined a variable in global section. This package has two subroutines.Assume i have a perl script in which i am creating object of package 'A'.Using this object i am calling 2 functions of A.My question is,how many times will the variable in global section be redefined out of these 3 actions : object creation,function 1 call , function 2 call
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl package scope of global variables
by haukex (Archbishop) on Feb 06, 2019 at 19:56 UTC | |
|
Re: Perl package scope of global variables
by AnomalousMonk (Archbishop) on Feb 06, 2019 at 19:27 UTC | |
|
Re: Perl package scope of global variables
by Anonymous Monk on Feb 06, 2019 at 18:37 UTC |