Re: Opening a pipe when taint mode is enabled
[email protected] (Adam Jimerson) Sun, 11 Jan 2009 20:10:09 -0500
| Newsgroups | perl.beginners.cgi |
|---|---|
| Organization | se |
| Message-ID | <[email protected]> |
Gunnar Hjalmarsson wrote: > Adam Jimerson wrote: >> On Jan 11, 8:21 am, [email protected] (Gunnar Hjalmarsson) wrote: >>> Adam Jimerson wrote: >>>> It seams I over looked the space, is it possible to include spaces in >>>> the search string? >>> >>> Of course it is. What you call search string is a regular expression. >>> >>> Obviously you have some reading to do: >>> >>> http://perldoc.perl.org/perlrequick.html >>> >>> http://perldoc.perl.org/perlretut.html >>> >>> http://perldoc.perl.org/perlre.html >> >> Yea I looked it up and all I needed to do was add \s for whitespaces, > > Which would also allow for newlines. That sounds dangerous to me, and is > an example why it's not a good idea to write your own code, that allows > the world to submit data to your system, before you really know what you > are doing. > How would I allow for spaces but not newlines in a textbox like the one that I use obtain the name? This is the reason that I am doing it so I can learn, I learn better by doing so by doing this and making mistakes (and fixing them) is a lot better for me than just reading about it. Sorry but reusing code from the CPAN is nice, but doesn't really help me learn.