Re: ping

2002-02-22 Thread Johan H
On Fri, 2002-02-22 at 15:18, insomniak wrote: > Hi > If you are looking to find out is a host is alive try this bit of code. > > $host = www.google.com; > $ip=join ".",unpack("C4",(gethostbyname($host))[4]); > > $ip will be empty if host is dead > > from command line > > perl -e "print join \"

Re: Summarising tables

2001-12-14 Thread Johan H
On Friday 14 December 2001 04:39, you wrote: > Hi all, > > Need a little help on summarising 2 different tables into 1, based on a > particular field. > > The 2 tables (they are actually content from a log file) look like the > follow : > > Table #1 > > 1006788900 198 36 > 1006788600

Re: RegExp Help.

2001-12-13 Thread Johan H
On Thursday 13 December 2001 16:36, Ryan Guy wrote: > just a simple question. I am new to the whole RegExp thing. It gets kind > of confusing. If someone could point me in the direction of a good > tutorial with plenty of examples or if someone could post a few regexp with > small code snippets