Use of uninitialized value in pattern match ..., <> chunk 2

From: mark McWilliams (hpv_of_earth_at_yahoo.com)
Date: 02/24/05


Date: Wed, 23 Feb 2005 15:58:06 -0800 (PST)
To: beginners@perl.org

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



Relevant Pages

  • Re: Yahoo
    ... No error message when the problem occurs. ... but when I try to access Yahoo email, ... The Yahoo/AT&T browser has no trouble with Yahoo ... I had trouble with Yahoo and Windows email compatibility ...
    (microsoft.public.windows.vista.mail)
  • having trouble with all search engines
    ... An error message detailing the cause ... application event log of the web server. ... At Yahoo I get that on the right then another ... Bot found 12 spy ware programs and deleted them. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • iexplorer.exe has generated errors.....................
    ... Immediately after stupidly adding an unknown individual to my Yahoo ... my internet explorer would produce the ... I am running Windows 2000 Professional. ... I continue getting the same error message indicated above ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Not able to send Yahoo mail with Outlook Express & dial-up
    ... The full text of the error message would be helpful. ... TCP/IP port 25 except to their own SMTP mail server.) ... > I cannot send from my Yahoo address when using OUtlook> Express with a dial up connection. ... it works if> I have a cable connection AND it works when I send> Hotmail email with any connection. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Yahoo
    ... If you need additional help with the Yahoo mail problem, ... give us a copy of the complete error message. ... Gary VanderMolen, MS-MVP (Mail) ... I had trouble with Yahoo and Windows email compatibility ...
    (microsoft.public.windows.vista.mail)