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
-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
= 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
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
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
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
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
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.
of approach. Any suggestions much appreciated.
Best,
Bill Stennett
___
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
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
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
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
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
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
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
es
i.e. "VAL1=123" and "VAL1=123"
Thanks in advance for any help
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
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
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
ow threads?
Many thanks
Bill Stennett
___
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
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
21 matches
Mail list logo