Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > grep through code to find references to cookies

Reply
Thread Tools

grep through code to find references to cookies

 
 
thomasamillergoogle@yahoo.com
Guest
Posts: n/a
 
      11-08-2005
I need to write a perl script that will search through HTML, JS, and PL
files that will search for programming code that references cookies.

Any idea how to do this (examples) that will ignore phrases like "i ate
some cookies" but find programming references to cookies?

 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      11-08-2005
wrote in news:1131482610.559615.206550
@g44g2000cwa.googlegroups.com:

> I need to write a perl script that will search through HTML, JS, and PL
> files that will search for programming code that references cookies.
>
> Any idea how to do this (examples) that will ignore phrases like "i ate
> some cookies" but find programming references to cookies?


Your task is simple *once* you have identified what "programming
references to cookies" look like.

Sinan
--
A. Sinan Unur <>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html

 
Reply With Quote
 
 
 
 
thomasamillergoogle@yahoo.com
Guest
Posts: n/a
 
      11-09-2005

for perl
"->cookie"
"Set-Cookie: "


for js
"document.cookie"

 
Reply With Quote
 
Anno Siegel
Guest
Posts: n/a
 
      11-09-2005
<> wrote in comp.lang.perl.misc:

[no attribution, no context]

[how to recognize if a program accesses cookies]

> for perl
> "->cookie"
> "Set-Cookie: "


print "This program doesn't use Set-Cookie\n";
# nor does it use the ->cookie method

Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies? _Who ASP .Net 7 09-18-2008 07:49 PM
Linux find and grep to pure Perl fourfour2@gmail.com Perl Misc 1 08-04-2006 08:37 AM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
how to understand references to variables and references to constants are distinguished? baumann.Pan@gmail.com C++ 3 11-10-2004 04:16 AM
Pointers and References (and References to Pointers) Roger Leigh C++ 8 11-17-2003 10:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57