Use of uninitialized value in pattern match ..., <> chunk 2
From: mark McWilliams (hpv_of_earth_at_yahoo.com)
Date: 02/24/05
- Next message: Ron Wingfield: "Re: [Maybe OT] . . .the Contracting Business"
- Previous message: Todd W: "Re: [Maybe OT] . . .the Contracting Business"
- Next in thread: John W. Krahn: "Re: Use of uninitialized value in pattern match ..., <> chunk 2"
- Reply: John W. Krahn: "Re: Use of uninitialized value in pattern match ..., <> chunk 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ron Wingfield: "Re: [Maybe OT] . . .the Contracting Business"
- Previous message: Todd W: "Re: [Maybe OT] . . .the Contracting Business"
- Next in thread: John W. Krahn: "Re: Use of uninitialized value in pattern match ..., <> chunk 2"
- Reply: John W. Krahn: "Re: Use of uninitialized value in pattern match ..., <> chunk 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|