On Wednesday, July 3, 2002, at 01:42 , Peter Scott wrote:

> At 01:17 PM 7/3/02 -0700, drieux wrote:
>> So for those of you with 'editorial skills'
>> and the time, please review and kvetch with
>> me about
>>
>>         http://www.wetware.com/drieux/pbl/perlTrick/CBO/PingIt/
>>
>> as a way to look at evolving code upward from the
>> simple idea....
>
> There's a portability problem with calling `ping $host`.

I have updated the front page - and expanded the warning
that this was designed from the ground up to be 'non-portable'
given the limitations of the original request - and the plan
to get through the basics first....

[..]
> In #3 you check for possibilities like the host not existing; IMHO this 
> is better done before and independently of ping, with something like
>
>         if (gethostbyname($host)...)

I think I avoided going that way so that we did not put too many
changes in from version to version... also wanted to show the
'gating solution' of - one only goes to this other function
by way of at least knowing that there is a chance of getting
to at least 'warning' level....

> Incidentally, many people object to the StudlyCaps form of naming, 
> certainly for subroutines and variable names.  They seem not to mind them 
> in module names.

bad habit! good catch.

> I don't think I could call this ready for Prime Time.

[..]

we all start some place - and making it to the

        not yet ready for prime time players

is a step up from 'way old crufty perl4-isms'....

8-)

All of which beat trying to manage this as say functions
in a /bin/sh library..... one problem at a time....

ciao
drieux

---

ps: yes bob - thought you would enjoy a laugh....

I assume that if the script works for folks - that they will
use the bits and bobs that they find useful - and if they
get that urge - perchance evolve on to doing the perl
library and perl module approach.... you know, for code re-use....




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to