in reply to Re: Re: Not Using So Many 'if' Statements
in thread Not Using So Many 'if' Statements
my $success; for(@host){ $stout = run($_); unless($stout == 256) { $success++; last; } print "$_ not responding, trying next host\n"; } print "all hosts not responding" unless $success;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Not Using So Many 'if' Statements
by CountZero (Bishop) on Jan 09, 2003 at 20:46 UTC |