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
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
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 "