[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] # Use of uninitialized value. huh??



At 16.04 -0500 0-02-01, Ronald J Kimball wrote:
>On Tue, Feb 01, 2000 at 08:59:28PM +0100, Martin D. wrote:
>
>> foreach my $link (@links) {
>
>Try putting the line
>
>warn "|$link|\n";
>
>right here.  I suspect this might reveal the problem.

It did, hmmm I really should check that my regexps do _exactly_ what I
expect them to do!!!

>
>
>>     $article = get($link);                       #unhapppy lines
>
>Why no error checking on the result of get()??

To me error checking was synonymous to || die, and I definitely didn't want
it to die so I figured I'd let MacSOUP silently drop misshaps instead.
There's a || warn now though, thanks muchly!!

>>     $article =~ s/\012/\n/gs;                    #line 52
>>     $len = length $article;                      #line 53
>>     print RNEWS "#! rnews ".$len."\n".$article;  #line 54
>>
>> }
>>
>
>Ronald

thanks,
/Martin



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org