>>>>> "FayeGibbins" == FayeGibbins  <[EMAIL PROTECTED]> writes:

FayeGibbins> in that vein why not ....
FayeGibbins> snip----------

FayeGibbins> #!/usr/bin/perl 
FayeGibbins> use LWP::Simple;
FayeGibbins> print "The server is ",(get "http://www.essenz.com"; ? "up" : "down"),"\n";

One: because this isn't "perl-golf"

Two: your code changes the semantics slightly and maintainability
quite a bit.  You aren't checking for "defined", so the web page could
return "" or "0" and your code would say "down".

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to