in reply to Re: (jeffa) Re: Ping Monitor with Email Notification
in thread Ping Monitor with Email Notification

"may I humbly ask what I've overlooked?"

The fact that i was half-asleep when i wrote that? :D

May i humbly say, thanks? I will leave my code untouched, but you are absolutely correct. I wrote my code by modifying linebacker's, but i forgot to add that feature. Thanks for catching it, and better yet, offering a solution.

However, don't initialize an array like this:
my @array = []; # use empty parens instead ()
That declared a new array whose first element is an anonymouse array reference. I have been bitten by that error before. ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^4: Ping Monitor with Email Notification
by Aristotle (Chancellor) on Feb 13, 2003 at 18:52 UTC
    Or better yet don't use parens at all, since a freshly declared array is empty by definition.

    Makeshifts last the longest.

4Re: (jeffa)Ping Monitor with Email Notification
by Tomte (Priest) on Feb 13, 2003 at 15:15 UTC
    However, don't initialize an array like this: my @array = []; # use empty parens instead () That declared a new array whose first element is an anonymouse array reference. I have been bitten by that error before. ;)

    thanks for that ;-), never would have thought this.
    ++jeffa tomorrow, as all my points today are gone.

    regards,
    tomte