Re: subs in while loops

2001-12-04 Thread Martin Pfeffer
another way will be to define $test as local so all subs called from the sub where is defined local $test has access to $test Martin On Mon, 3 Dec 2001 23:34:59 -0500 (EST), you wrote: >On Tue, 4 Dec 2001, Daniel Falkenberg wrote: > >> Hi All, >> >> while(1) { >> #Read from a sub outside of

Re: subs in while loops

2001-12-03 Thread Brett W. McCoy
On Tue, 4 Dec 2001, Daniel Falkenberg wrote: > Hi All, > > while(1) { > #Read from a sub outside of the while loop... > get_sub(); > } > > get_sub { > print $test; > } > > I understand that the above code doesn't really say much but it gives a > brief understading of my problem. Baiscally

subs in while loops

2001-12-03 Thread Daniel Falkenberg
Hi All, while(1) { #Read from a sub outside of the while loop... get_sub(); } get_sub { print $test; } I understand that the above code doesn't really say much but it gives a brief understading of my problem. Baiscally when I compile the script I get a compilation error saying... Name "