Wiggins d'Anconia wrote:
>sub test1 {
> my $aa = 1;
> my $aaa = 2;
> test2($aa, $aaa);
>}
>
>sub test2 {
> my ($bb, $bbb) = @_;
> print "aa = $bb\n";
> print "aaa = $bbb\n";
>}
>
>Is the above better, in the court of readability and encapsulation,
>yes, in the court of elegance, maybe
Eternius wrote:
Joshua A. Gage wrote:
Hi,
I'm having a bit of trouble with using some local scope variables. I
have a function where I want to define a variable, then use that
variable in a sub function. That sounds like the text book definition
for when to use a local scope variable. Below is
Joshua A. Gage wrote:
Hi,
I'm having a bit of trouble with using some local scope variables. I
have a function where I want to define a variable, then use that
variable in a sub function. That sounds like the text book definition
for when to use a local scope variable. Below is the test script
On 02/12/04 18:19, Joshua A. Gage wrote:
Hi,
I'm having a bit of trouble with using some local scope variables. I
have a function where I want to define a variable, then use that
variable in a sub function. That sounds like the text book definition
for when to use a local scope variable. Below