Re: Elegant sequencing

2004-08-28 Thread Bryan Harris
>>> I don't claim to be a master, but you can do something along the lines of: >>> >>> $range = '4.3:8.3'; >>> $range =~ /(\d+).(\d+).(\d+).\2/ and print map "$_.$2 ", $1 .. $3; >>> >>> Since it appears you require that the fractional part be the same for both >>> ends of the range, I'm just ca

Re: how add something in MySQL what is not activated immediately

2004-08-28 Thread JupiterHost.Net
Maxipoint Rep Office wrote: this is good idea, but in some cases I must have more control. If I set interval 15 days and user pay me fee I must activate it immediately or if user is not pay I must delete it.. have someone another more strict way? Again not a perl question but rather one of databa

Re: Regular expression generator/creator

2004-08-28 Thread Robin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 28 Aug 2004 01:21, Chris Devers wrote: > Rather than trying to find a tool for this, you'll be much better off > trying to come up with an understanding of what within the patterns that NP-Hard problems are still quite possible to solve. I work

Re: Regular expression generator/creator

2004-08-28 Thread Philipp Traeder
On Saturday 28 August 2004 HH:27:20, Chris Devers wrote: > On Sat, 28 Aug 2004, Philipp Traeder wrote: > > I'm not sure if I understood the Halting Problem completely, but could > > you give a hint what brings you to the assumption that "automatically > > generating regular expressions from a bunch

Re: Regular expression generator/creator

2004-08-28 Thread Chris Devers
On Sat, 28 Aug 2004, Philipp Traeder wrote: I'm not sure if I understood the Halting Problem completely, but could you give a hint what brings you to the assumption that "automatically generating regular expressions from a bunch of text" is a variant of the Halting Problem? I'm not a computer sc

RE: how add something in MySQL what is not activated immediately

2004-08-28 Thread Maxipoint Rep Office
this is good idea, but in some cases I must have more control. If I set interval 15 days and user pay me fee I must activate it immediately or if user is not pay I must delete it.. have someone another more strict way? -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED]

Re: how add something in MySQL what is not activated immediately

2004-08-28 Thread JupiterHost.Net
Maxipoint Rep Office wrote: how add something in MySQL what is not activated immediately? Not really a perl question but oh well :) I wish submit form and add data in MySQL database, but it must not be visible at the web site for show data immediatelly. I wish that it will be visible after I manua

Re: Regular expression generator/creator

2004-08-28 Thread Philipp Traeder
On Friday 27 August 2004 HH:21:13, Chris Devers wrote: > On Fri, 27 Aug 2004, Mark Maunder wrote: > > I've google'd and CPAN'd and no luck. Is there a tool out there that > > will generate a regular expression based on a series of string inputs > > that are similar but have parts that differ[?] > [

Re: Regular expression generator/creator

2004-08-28 Thread Chris Devers
On Sat, 28 Aug 2004, Mark Maunder wrote: I suspect you're right. For the archives, on my attempt to solve this I came across the following useful modules: ...so why didn't you look before asking ? Anyway, you said you want a tool to take a set of strings, some that you want to match, some that you

Re: Regular expression generator/creator

2004-08-28 Thread Mark Maunder
Hi Chris, I suspect you're right. For the archives, on my attempt to solve this I came across the following useful modules: Regexp::List - builds regular expressions out of a list of words Regexp::Parser - base class for parsing regexes String::REPartition - Generates a regex to partition a data

Re: Elegant sequencing

2004-08-28 Thread John W. Krahn
Bryan Harris wrote: I don't claim to be a master, but you can do something along the lines of: $range = '4.3:8.3'; $range =~ /(\d+).(\d+).(\d+).\2/ and print map "$_.$2 ", $1 .. $3; Since it appears you require that the fractional part be the same for both ends of the range, I'm just capturing the

how add something in MySQL what is not activated immediately

2004-08-28 Thread Maxipoint Rep Office
how add something in MySQL what is not activated immediately? I wish submit form and add data in MySQL database, but it must not be visible at the web site for show data immediatelly. I wish that it will be visible after I manually activate data.. what is best and simple way to do it? -- To un

Re: Indentation when coding perl

2004-08-28 Thread Gavin Henry
On Saturday 28 Aug 2004 04:21, you wrote: > Did you ever get things working? Yep all is fine now. I used the link for someones vimrc. > -Original Message- > From: Gavin Henry [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 9:56 AM > To: [EMAIL PROTECTED] > Subject: Indentation w