Re: comparing and contrasing two approaches to variable scope

2006-05-03 Thread Paul Johnson
On Wed, May 03, 2006 at 09:17:21AM -0500, Rance Hall wrote: > Assuming you had a script configuration variable that was used numerous > places in your script, further assume that you have "use strict;" in > your perl script. > > You could declare the variable "my" and pass that variable to any

comparing and contrasing two approaches to variable scope

2006-05-03 Thread Rance Hall
Assuming you had a script configuration variable that was used numerous places in your script, further assume that you have "use strict;" in your perl script. You could declare the variable "my" and pass that variable to any subroutines that needed it with @_. Or you could declare that varia