CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Interpreting "=" as a literal character



Dec 4, 2000, 4:05 PM

Post #1 of 2 (347 views)
Interpreting "=" as a literal character Can't Post

I am trying to set a cookie that has a value containing 3 parts:
1. "cookie_id="
2. rand(10**15)
3. time()

I have the current cookie set as:

But I get a value of:

How do I interpret the "=" as a literal character. I have tried using "" for the whole cookie_id= string and also tried using the \

Help is appreciated :D


Dec 5, 2000, 10:31 AM

Post #2 of 2 (347 views)
Re: Interpreting "=" as a literal character [In reply to] Can't Post

Hmm, This is where I'm a little confused myself, because the browser when setting the cookies I know will translate certain characters, but which ones. I see that you are passing the data to a sub to set the cookie, even though when you are passing the data to the sub using literal quotes '', in order to set the cookie in the sub you must be using non-literal quotes "" so that it will read the variable, You should try setting the cookie direct, so you can avoid having the use variable quotes "", do you know what I mean? If you want to set it as-is, you must make sure you are using literal quotes.

Give that a shot,



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives