yitzle wrote:
I know this isn't the best way to parse it, but I need to check the
$ENV{'QUERY_STRING} for some values.
I originally had   =~ /^limit=([0-9]{1,3})$/   which worked. But I
tried to replace the ^ with [&^] and the $ with [&$] to allow the
string to be part of a longer string attached with an & on either
side.
The point is, the [&^] doesn't seem match either ^ or &, like I want to.
Why is this? How do I match ^ or &?
(I really should just split on & and grep or whatever, but...)


What you really should be using is CGI.pm. It does all this work for you. See `perldoc CGI`.


--
Just my 0.00000002 million dollars worth,
   Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to