Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

(MeowChow) Re3: Is this CGI search secure?

by MeowChow (Vicar)
on Jul 23, 2001 at 14:12 UTC ( [id://98954]=note: print w/replies, xml ) Need Help??


in reply to Re: (MeowChow) Re: Is this CGI search secure?
in thread Is this CGI search secure?

You're better off using the qr operator rather than evaling run-time code for this sort of thing (I'm surprised this wasn't mentioned in the ApacheCon talk):
  
my $re = qr/\Q$find/i; my @lines = grep /$re/, @$data_ref;
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98954]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found