"Purcell, Scott" wrote:
> 
> Hello,
> I have a question about the CGI.pm module I have been using.
> 
> Anyway, I am a procedural guy, so I get all my data like this:
> my $fieldval = param('sometextfield');
> 
> My question: When I get the $fieldval, is it clean of whitespace in the
> front and back? Sometimes I run queries against a SQL database and compare
> what the user entered in a web page against what is in sql.
> 
> Lately (I don't know the reason), I constantly clean all the param values:
> $fieldval =~ s/^\s+//;
> $fieldval =~ s/\s+$//;
> 
> Do I need to do this or does CGI.pm perform the cleanup? I was hoping
> someone may have an answer. Or it would be interesting to hear if others do
> what I do, or if I am paying the price in time for cleaning?

You will need to check them yourself if you want to remove l/t WS.

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.todbe.com/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to