RE: How do I make a variable globally accessible without vars

2004-04-17 Thread B. Fongo
my $counter = shift; return(my $counter) = shift; } 1; ||> -Original Message- ||> From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] ||> Sent: Saturday, April 17, 2004 2:35 AM ||> To: 'B. Fongo'; [EMAIL PROTECTED] ||> Subject: RE: How do I make a

RE: How do I make a variable globally accessible without vars

2004-04-16 Thread Charles K. Clarkson
B. Fongo <[EMAIL PROTECTED]> wrote: : : I get the usual warning "Use of uninitialized ." while trying : to test a variable ($counter) which is initialized later in : my script. Well that would make sense. The if statement below assumes a value is in $counter. In perl undefined and 0 are both