Re: Local Scope Variables

2004-02-14 Thread Jan Eden
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

Re: Local Scope Variables

2004-02-14 Thread Wiggins d'Anconia
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

Re: Local Scope Variables

2004-02-13 Thread Eternius
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

Re: Local Scope Variables

2004-02-13 Thread Randy W. Sims
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