Liam Arbetman wrote:
> while (){
> chomp;
> @line=split/\|/;
> $arrsize=0;
> if($_ eq "|"){
> $arrsize=0;
> }else {
>[EMAIL PROTECTED];
>}
>print $arrsize;
> if($arrsize<1)
>
> i am reading a txt file where data elements are separated by "|". some lines are
> only contain a
oing a
test for string equality.
--
Mike Arms
-Original Message-
From: Gerber, Christopher J [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 2:39 PM
To: Liam Arbetman; [EMAIL PROTECTED]
Subject: RE: array size confusion
> i am reading a txt file where data element
I think somewhere your statement is returning NULL or otherwise empty
values. I ran into something very similar to this myself. Within your
loop, insert:
"no warnings 'uninitialized';"
to quiet such warnings. This should do the trick.
Liam Arbetman wrote:
while (){
chomp;
@line=split/\|/;
$ar