regex to parse name=value pairs from a string

2006-06-15 Thread Bill Stennett - compuserve
Hi All, I have a string formatted like this: my $mystring = 'var1=123::var2=abc456::var3=10.99::var4=def'; What I need to do is to be able to extract name=value. I cannot be sure where in the list a any value will occur so to extract a value for 'var2' from the above example would require

RE: regex to parse name=value pairs from a string

2006-06-15 Thread Bill Stennett - compuserve
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bowie Bailey Sent: 15 June 2006 15:38 To: activeperl mailing list Subject: RE: regex to parse name=value pairs from a string Bill Stennett - compuserve wrote: Hi All, I have a string formatted like this: my

RE: formatted output to a variable

2006-06-13 Thread Bill Stennett - compuserve
= 0; $count = 20; $count++ ) { $name = sprintf( '%02d', $count ); # display the $name string print $name, ; }; # end for ## HTH Bill Stennett -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Horst Walther

Script running out of memory

2006-05-26 Thread Bill Stennett - compuserve
storage rather than to build it in memory? The performance degradation would not be an issue at this stage of our development... but is it possible to do such a thing? I'd appreciate any ideas. Regards, Bill Stennett ___ ActivePerl mailing list ActivePerl

re: Script running out of memory

2006-05-26 Thread Bill Stennett - compuserve
before and explore Tie::Hash. Thanks, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 26 May 2006 16:07 To: Bill Stennett - compuserve; activeperl mailing list Subject: Re: Script running out of memory Bill, Have you looked at the pure Perl DBM::Deep

using grep and join to print a list

2006-02-12 Thread Bill Stennett - compuserve
Hi All, Just a quick question if I may. What am I doing wrong here? use strict; use warnings; my $sortedstring = ''; my @sortedline = (1,3,7,9,12,45); # attempt build a string of every number from the sortedline array with # a leading zero to make up to two digits as appropriate $sortedstring

RE: using grep and join to print a list

2006-02-12 Thread Bill Stennett - compuserve
John and Bill Thanks very much for your replies, Yes - map is indeed what I need. Works fine now. Many thanks Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 February 2006 16:24 To: Bill Stennett - compuserve Cc: activeperl mailing list Subject: Re

DBI HandleError and transactions

2006-01-19 Thread Bill Stennett - compuserve
Hi All, I'm using DBI HandleError to handle DBI errors in my own subroutine. In that subroutine I currently do some error logging; give user messages and exit. I note from the docs that the when working in a transactional environment the action of the $dbh-disconnect method is undefined i.e.

use strict and exporting values from modules

2004-10-25 Thread Bill Stennett
of approach. Any suggestions much appreciated. Best, Bill Stennett ___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: use strict and exporting values from modules

2004-10-25 Thread Bill Stennett
Thanks very much Bill - it works fine. all the best, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 October 2004 12:33 To: Bill Stennett Cc: activeperl mailing list Subject: Re: use strict and exporting values from modules Bill Stennett wrote

RE: LPW UserAgent

2004-09-01 Thread Bill Stennett
Hi All Thanks to everyone for the suggestions. Unfortunately I'm still having no luck. I have upgraded the Win2000 SP2 box to 5.8.4. When I run the example below I get this error and the machine makes no attempt to connect to the requested URL ( I can tell 'cos I'm using 'tcpview' to look for

multi processor support in AS perl for win NT4

2002-03-01 Thread Bill Stennett
Hi All We use AS perl 5.6 on windows NT4. I have a long running process (it takes about half an hour) which indexes entries in a glossary and I need to speed it up if possible. I switched to a dual processor system and one thing I noticed is that when the process is running the NT task manager

RE: multi processor support in AS perl for win NT4

2002-03-01 Thread Bill Stennett
Many thanks Peter - I will explore the potential for multiple threads in my program Bill -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter VerhasSent: 2002-03-01 15:52To: [EMAIL PROTECTED]Subject: multi processor support in AS

HTTP Request error

2002-02-05 Thread Bill Stennett
Hi All Platform: windows, AS Perl I'm trying to create a request object to post data to a web URL. My problem is that I can't get past creating the request object. I need to pass a couple of values (a and b). The offending line of code is shown below: $request = new

searching for similar keys in a hash

2001-11-07 Thread Bill Stennett
appreciated. Bill Stennett WAP Integrators Plc e: [EMAIL PROTECTED] t: +44(0)1923 211 000 f: +44(0)1923 220 890 http://www.wapintegrators.com ___ ActivePerl mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activeperl

a regex question

2001-05-24 Thread Bill Stennett
es i.e. "VAL1=123" and "VAL1=123" Thanks in advance for any help Bill Stennett

Re: a regex question

2001-05-24 Thread Bill Stennett
this snippet does not match and print the value 123. Bill Stennett - Original Message - From: Arthur Cohen [EMAIL PROTECTED] To: Bill Stennett [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 9:31 PM Subject: RE: a regex question Hi Bill; If you put a ? after

Visual Package Manager

2001-05-11 Thread Bill Stennett
Hi All I'm looking at the trial version of the Perl dev Kit at the moment. We use AS Perl under windows NT. Does anyone know if there is a way of getting the VPM to only show modules that are relevant to the platform you are using (in our case WIN32)? Many thanks Bill Stennett WAP

RE: Socket Problem

2001-03-28 Thread Bill Stennett
Does it make a difference if you use two blank lines to terminate your message string? e.g. syswrite($handle, "Hello there !\n\n", length("Hello there !\n\n")); I've used a similar system and seem to remember it requiring two blank lines in order for the server to acknowledge that the

threads

2001-03-15 Thread bill stennett
ow threads? Many thanks Bill Stennett ___ ActivePerl mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activeperl

time functions

2001-01-09 Thread bill stennett
Hi All Can anyone tell me if there is their a function for converting the time string produced by localtime i.e. (day, month, date, HH, MM, SS, year) into the number of seconds since the EPOCH. I would like to compare the data in a log file with the current value returned by the system