Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-27 Thread Lyle
Michael Peters wrote: Lyle wrote: I've looked for one, the only one I could find is HTML::TagParser but it isn't suitable as it can't be used to recreate the page. Also looking at the source it uses regexp. Just looking at the source code briefly, it seems that it's using regexes as part

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-26 Thread Michael Peters
Lyle wrote: + Javascript code which has HTML in strings (very common in DHTML apps) Does the current parser pick that up? I don't think HTML::Parser executes any JavaScript. No, I'm saying that your simple regex approach whould change the JS code on the page, which is *not* what people

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-26 Thread Michael Peters
Lyle wrote: I've looked for one, the only one I could find is HTML::TagParser but it isn't suitable as it can't be used to recreate the page. Also looking at the source it uses regexp. Just looking at the source code briefly, it seems that it's using regexes as part of it's

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Michael Peters
Lyle wrote: Anyone had any ideas for a Pure Perl FillinForm replacement? At the moment I'm thinking of a simple regexp based alternative??? Please, please don't do that! HTML is a complicated language and any regular expressions you come up with will fail on real world code. Trying to

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Jaldhar H. Vyas
On Sun, 25 Jan 2009, Michael Peters wrote: Dealing with HTML requires a parser. Anything else won't make people happy. Agree. On a side note, get a hosting provider that gives you a compiler, gee wiz! Easy for you to say Mr. Moneybags! I doubt if any of the cheap hosting providers

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread P Kishor
On 1/25/09, Jaldhar H. Vyas jald...@braincells.com wrote: On Sun, 25 Jan 2009, Michael Peters wrote: Dealing with HTML requires a parser. Anything else won't make people happy. Agree. On a side note, get a hosting provider that gives you a compiler, gee wiz! Easy for you to

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Lyle
Michael Peters wrote: Lyle wrote: Anyone had any ideas for a Pure Perl FillinForm replacement? At the moment I'm thinking of a simple regexp based alternative??? Please, please don't do that! HTML is a complicated language and any regular expressions you come up with will fail on real world

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Ron Savage
Hi Lyle I see. But there isn't a Pure Perl parser available, and for those that really can't get HTML::Parser on their cheap shared hosting, isn't a regexp that works most/some of the time better than nothing? No, it's not 'better than nothing'. Ever. All you're doing is lighting the fuse

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread P Kishor
On 1/25/09, Ron Savage r...@savage.net.au wrote: Hi Lyle I see. But there isn't a Pure Perl parser available, and for those that really can't get HTML::Parser on their cheap shared hosting, isn't a regexp that works most/some of the time better than nothing? No, it's not 'better

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Lyle
P Kishor wrote: On 1/25/09, Ron Savage r...@savage.net.au wrote: Hi Lyle I see. But there isn't a Pure Perl parser available, and for those that really can't get HTML::Parser on their cheap shared hosting, isn't a regexp that works most/some of the time better than nothing? No,

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Joshua Miller
Data::FormValidator can be used without the stated XS prereq's, if you don't use the built in 'email', you don't need Net::DNS. Just use a regex in its place. Something like '/^[a-za-z0-9\_\-\...@[a-za-z0-9\_\-\.]+[a-za-z]$/' might do (NOTE: there are more complete ones out there). You don't have

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Lyle
Joshua Miller wrote: As for HTML::FillInForm, it's better to do nothing, than to use some regexp. I believe that is the point to which Ron was pointing. Using a regexp can cause you far more problems than good. That's not to say a pure-perl parser cannot be written, but that hand-writing a regex

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread P Kishor
On Sun, Jan 25, 2009 at 7:00 PM, Lyle webmas...@cosmicperl.com wrote: Joshua Miller wrote: As for HTML::FillInForm, it's better to do nothing, than to use some regexp. I believe that is the point to which Ron was pointing. Using a regexp can cause you far more problems than good. That's not

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread Ron Savage
Hi Folks Fortunately I am neither advocating nor desiring a pure-Perl form validation module, but I don't understand the resistance to this. The poor bloke is saying -- look, I have folks who want to utilize my scripts in situations where they cannot compile modules... what do I do?

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-25 Thread P Kishor
On Sun, Jan 25, 2009 at 7:40 PM, Ron Savage r...@savage.net.au wrote: Hi Folks Fortunately I am neither advocating nor desiring a pure-Perl form validation module, but I don't understand the resistance to this. The poor bloke is saying -- look, I have folks who want to utilize my scripts

Re: [cgiapp] [Fwd: Re: ValidateRM not PP]

2009-01-24 Thread Lyle
Lyle wrote: On Fri, 23 Jan 2009 02:49:24 + Lyle webmas...@cosmicperl.com wrote: Hi Mark, I've only just noticed that ValidateRM has some non Pure Perl dependencies ... Is there currently a way around this that I'm not aware of? No, there isn't. --- Anyone got input on this?