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