"no warnings 'uninitialized';"
to quiet such warnings. This should do the trick.
Liam Arbetman wrote:
while (<STUFF>){ 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 "|". i get an "uninitialized value in string eq" error at the last line of code above--but only on lines that have more than just "|".
wtf?
i am convinced that it's something ridiculously simple and i made a really simple mistake. but for the life of me i can't figure it out.
TIA ~Liam
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
-- Craig Cardimon, Programmer AUS Inc. (Knowledge Express Data Systems; 1-800-529-5337, ext. 24) _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs