> -----Original Message-----
> From: Chris Devers [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 23, 2005 1:18 PM
> To: Tyson Sommer
> Cc: 'Perl Beginners List'
> Subject: Re: printing output of ping command -- New question 
> at bottom.
> 
> On Wed, 23 Feb 2005, Tyson Sommer wrote:
> 
> > This might be a question for beginners-cgi, but since it 
> was mentioned
> > here...
> 
> Sounds like it, but oh well.
> 
> This doesn't really fix your problem so much as your error 
> handling, but 
> why aren't you catching the reason your script dies?
> 
> Instead of
> 
>     my $pinger = Net::Ping->new("icmp") || die; 
> 
> Why not use 
> 
>     my $pinger = Net::Ping->new("icmp") || die "Can't make 
> pinger: $!"; 

I do that. I just was being lazy in typing here (thought that part was
inconsequential).



> This might at least give you a more descriptive error message...
> 
> Also, are you having CGI::Carp use fatalsToBrowser for testing?


Yes. Thus the error message that I'm seeing in my browser.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to