I have this script:<br><br>foreach my $url (@list_of_rss_url){<br><br>&nbsp;&nbsp; &nbsp;my $rss=XML::RSS-&gt;new();<br>&nbsp;&nbsp; &nbsp;my $data=get($url)or&nbsp; die&nbsp; &quot;Couldn't get it!&quot;;# unless defined $data;<br>&nbsp;&nbsp; &nbsp;$rss-&gt;parse($data);<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;foreach my $item (@{$rss-&gt;{items}}){<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;my $link=$$item{link};<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;my $title=$$item{title};<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;print &quot;$link, $title \n&quot;;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>}<br><br>but my problem is I don't want the script to die if the rss is not valid or not available when I call it.
<br><br>Any of you knows how can I make this work?<br><br>Thanks,<br>Luis<br><br>