What is the following telling me , especially the chunk 2? Use of uninitialized value in pattern match (m//) at ./lo line 27, <> chunk 2
I used if (defined ... to get rid of a few other errors. this is in reference to the following code edited to reduce size while (defined($in = <>)) { if ( $in =~ /MT /) { $/ = ""; if (defined $in) { ($mt, $t1) = split('MT ',$in); } if (defined $t1) { ($title,$dp) = split('DP ',$t1); } if(defined $dp) { ($year,$other)= split("\n" ,$dp);} if (defined $t1) { ($lo, $rest) = split ('LO ',$t1); } if (defined $rest) { ($locate, $more) = split ('\t' , $rest);} unless ($rest =~ /QA76/) #<= line 27 { print "Title =>". $title ." published after => ". $year . "="x80 ."\n"; } } } What values might be uninitialized if I used if defined to finded the values? Thank you very much for all your time and effort in advance. What web site might I visit were I could type in an error message and get a better clue as to what it is telling me? THank you very much again in advance. __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>