grep through code to find references to cookies

  • Thread starter thomasamillergoogle
  • Start date
T

thomasamillergoogle

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?
 
A

A. Sinan Unur

(e-mail address removed) wrote in @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

Anno Siegel

[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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top