For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > September 2004 > Re: CGI.pm : Handling Carriage Returns from textarea()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: CGI.pm : Handling Carriage Returns from textarea()
Gunnar Hjalmarsson

2004-09-12, 8:55 pm

Chris Devers wrote:
> On Thu, 9 Sep 2004, Gunnar Hjalmarsson wrote:
>
> The immediate problem has nothing to do with parsing, but it seemed
> like some of the suggestions given were starting to go in that
> direction.


Maybe.

The reason for my remark is that I have noticed that quite a few Perl
programmers start yelling "HTML::Parser" or "XML::Parser" etc. as soon
as they get sight of a couple of angle brackets. Personally I have
never had a reason to consider the use of such a module, and I don't
question that it's advisable to use them when you are about to parse a
web page that you have picked up from the web. However, there are
cases with more trivial tasks where I have a feeling that you might
overdo it by using a parsing module. (Provided, of course, that you
know regular expressions well enough.)

And in this case there wasn't even a parsing problem involved. ;-)

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com