Re: number of spaces in a given sentence using regular expression.

2005-11-23 Thread Chris Devers
On Tue, 22 Nov 2005, Bob Showalter wrote: > [EMAIL PROTECTED] wrote: > > ... > > please give me the answers of these questions. > > Chris Devers will be along shortly... :~) Sorry, I was on vacation :-) Please, in the future, direct all such questions to [EMAIL PROTECTED] (You'll probabl

Re:

2005-11-23 Thread Dr.Ruud
JupiterHost.Net: > Templates are good and the poitn is: > > PHP's main "advantage" is embedded PHP/HTML + using a template systems > make the embedded garbage useless = PHP is useless :) I still can't follow you. Use the templates for the parts of your system where templates are good for, and han

Re: line numbers

2005-11-23 Thread Xavier Noria
On Nov 23, 2005, at 22:08, The Ghost wrote: how can I print the current line of my script? #!/usr/bin/perl use Module; $someVar='something'; print "This is line number $???\n"; <-want to print "This is line number 6" print "This is line number $???\n"; <-want to print "This is line number

line numbers

2005-11-23 Thread The Ghost
how can I print the current line of my script? #!/usr/bin/perl use Module; $someVar='something'; print "This is line number $???\n"; <-want to print "This is line number 6" print "This is line number $???\n"; <-want to print "This is line number 7" Thanks! -- To unsubscribe, e-mail: [EM

Re: regex mutil-line matching

2005-11-23 Thread Jeff 'japhy' Pinyan
On Nov 23, Dermot Paikkos said: Looking at the mail queue on my smtp server I notice the usual amount of crap. The mailq output is in this format: 11h 8.5K 1EeoEz-0003t2-00 <> [EMAIL PROTECTED] 10h 10K 1EepGl-0004VH-00 <> [EMAIL PROTECTED] 11h 8.4K 1EeoUI-0004YR-00 <>

HTML::TableExtract example

2005-11-23 Thread Steve Finkelstein
Hi all, I've completed this using regular expressions parsing out arbitrary data between HTML tag, however I found a much more efficient route with the HTML::TableExtract module which looks like it can very well shorten my code and make it more manageable. I'm able to parse out the entire table w

Re: regex mutil-line matching

2005-11-23 Thread John W. Krahn
Dermot Paikkos wrote: > Hi Hello, > Looking at the mail queue on my smtp server I notice the usual amount > of crap. The mailq output is in this format: > > 11h 8.5K 1EeoEz-0003t2-00 <> > [EMAIL PROTECTED] > > 10h 10K 1EepGl-0004VH-00 <> > [EMAIL PROTECTED] > > 11h 8.4

regex mutil-line matching

2005-11-23 Thread Dermot Paikkos
Hi Looking at the mail queue on my smtp server I notice the usual amount of crap. The mailq output is in this format: 11h 8.5K 1EeoEz-0003t2-00 <> [EMAIL PROTECTED] 10h 10K 1EepGl-0004VH-00 <> [EMAIL PROTECTED] 11h 8.4K 1EeoUI-0004YR-00 <> [EMAIL PROTECTED] I

Re: Deciphering TCP payload (i.e,. output of NetPacket::TCP->decode())

2005-11-23 Thread Jay Savage
On 11/23/05, Eric Pretorious <[EMAIL PROTECTED]> wrote: > I'm attempting to write a small program to decode OSCAR packets and just > can't get my mind wrapped-around whatever it is that > NetPacket::TCP->decode() is returning when stripping-away the ethernet, > IP, and TCP encapsulation from OSCAR

Re: grep mystery / What happened to my @ sign ?

2005-11-23 Thread John W. Krahn
Jay Savage wrote: > On 11/23/05, Jeremy Kister <[EMAIL PROTECTED]> wrote: >>On 11/23/2005 2:26 AM, David Gilden wrote: >>>$SendersEmail ="[EMAIL PROTECTED]"; >>> >>>($SendersEmail) = $SendersEmail =~ m/([EMAIL PROTECTED],60})/; >>[...] > > You want to be careful with your classes here. '@' is no

Re: grep mystery / What happened to my @ sign ?

2005-11-23 Thread Jay Savage
On 11/23/05, Jeremy Kister <[EMAIL PROTECTED]> wrote: > On 11/23/2005 2:26 AM, David Gilden wrote: > > $SendersEmail ="[EMAIL PROTECTED]"; > > > > ($SendersEmail) = $SendersEmail =~ m/([EMAIL PROTECTED],60})/; > [...] > > I was expecting this: [EMAIL PROTECTED] > > What happened to my @ sign ? > >

Deciphering TCP payload (i.e,. output of NetPacket::TCP->decode())

2005-11-23 Thread Eric Pretorious
I'm attempting to write a small program to decode OSCAR packets and just can't get my mind wrapped-around whatever it is that NetPacket::TCP->decode() is returning when stripping-away the ethernet, IP, and TCP encapsulation from OSCAR packets. (Maybe it's unicode? Maybe it's hex? I don't quite unde