RE: Error handling on script(closed)

2006-07-24 Thread joseph tacuyan
Thomas B�tzler <[EMAIL PROTECTED]> wrote: Hi, joseph tacuyan asked: > #usr/local/perl -w > use strict; > use Socket; > open(OUTPUT,">>iplisted.txt") or die "can't open iplisted.txt > $!"; foreach () { s/\s+//; my $address = $_; my $name > = gethostbyaddr(inet_aton($address), AF_INET) >

RE: Error handling on script

2006-07-23 Thread Thomas Bätzler
Hi, joseph tacuyan <[EMAIL PROTECTED]> asked: > #usr/local/perl -w > use strict; > use Socket; > open(OUTPUT,">>iplisted.txt") or die "can't open iplisted.txt > $!"; foreach () { s/\s+//; my $address = $_; my $name > = gethostbyaddr(inet_aton($address), AF_INET) > or die "Can't re

Re: Error handling on script

2006-07-23 Thread Offer Kaye
On 7/24/06, joseph tacuyan wrote: How can rewrite it, so even it encounters such an error it would still continue? Thank you for all the help. Change this: my $name = gethostbyaddr(inet_aton($address), AF_INET) or die "Can't resolve $address: $!\n"; print OUTPUT "$_ =>$name \n"; to: