Re: Help required to extract multiple text fields from a text string

2012-05-27 Thread Michael Rasmussen
On Sun, May 27, 2012 at 07:24:26PM -0700, John W. Krahn wrote: > Michael Rasmussen wrote: >> [ a bunch of blather, snipped here ] > > The regular expression is not splitting! It is capturing. > split removes whitespace. > The regular expression captures non-whitespace. > So the two expressions pos

Re: Help required to extract multiple text fields from a text string

2012-05-27 Thread John W. Krahn
Michael Rasmussen wrote: On Sat, May 26, 2012 at 05:52:19PM +0100, Rob Dixon wrote: On 26/05/2012 14:07, pa...@fsmail.net wrote: From: "Rob Dixon" On 26/05/2012 13:51, pa...@fsmail.net wrote: split is slower than the correct regex matching. That is complete nonsense. Can you show a bench

Re: Perl HTTP Get

2012-05-27 Thread Chris Nehren
On Sun, May 27, 2012 at 14:00:34 -0500 , Matt wrote: > I have a line like this: > > $rststr = get("http://"; . $dst . "/request.htm" ); > > Problem is that I have had this script hang due to the $dst site being > down. Is there a way to do a time out? Consider using the core alarm() function, o

Perl HTTP Get

2012-05-27 Thread Matt
I have a line like this: $rststr = get("http://"; . $dst . "/request.htm" ); Problem is that I have had this script hang due to the $dst site being down. Is there a way to do a time out? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@p

Re: Help required to extract multiple text fields from a text string

2012-05-27 Thread Michael Rasmussen
On Sat, May 26, 2012 at 05:52:19PM +0100, Rob Dixon wrote: > On 26/05/2012 14:07, pa...@fsmail.net wrote: >> From: "Rob Dixon" >>> On 26/05/2012 13:51, pa...@fsmail.net wrote: split is slower than the correct regex matching. >>> >>> That is complete nonsense. Can you show a benchmark tha

Re: Help required to extract multiple text fields from a textstring

2012-05-27 Thread Dr.Ruud
On 2012-05-26 14:51, pa...@fsmail.net wrote: split is slower than the correct regex matching. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Help required to extract multiple text fields from a text string

2012-05-27 Thread Shawn H Corey
On 12-05-27 02:00 AM, Shlomi Fish wrote: On Sat, 26 May 2012 20:26:14 -0700 Adams Paul wrote: > > Sent from my LG phone > Why have you already sent 4 messages to this mailing list, which contain nothing except this "Sent from my LG phone" notice and the entire replied-to message quoted below