- - Code, Content, and Presentation
- -- Perl Server Side CGI Scripting
- ---- Perl exact match operator for useragent string?
JAB_Creations - 10:59 pm on Jul 24, 2007 (gmt 0)
Now you've mentioned regular expressions...so here is my take on what I've read thus far...
According to Wiki...
|^ Matches the beginning of a line or string. |
$ Matches the end of a line or string.
So I attempted this...
|my $regverexampleMozilla5=^Mozilla/5.0$; |
It's obviously not valid if the script breaks.
Is there simply no direct method of detecting an exact string in Perl?
Thread source: http://www.webmasterworld.com/perl/3403604.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com