Feb 1, 2000, 3:28 PM
Post #2 of 2
The problem is that you have '$usrname' in between single quotes. If you want to interpolate the scalar (get the value of $usrname), then enclose it in double quotes.
Re: Cookies and text with milk.
[In reply to]
Using single quotes around a scalar or other variable will tell Perl to treat the text within it literally.
'$username' is treated literally as $username
"$username" has a special character in it, so Perl interpolates it and gives you the value of $username, instead of the word $username
Simple change the &SetCookies line to:
Also, in the way you're using the scalar (as a lone variable being passed to a subroutine), you can omit the quotes completely and use:
[This message has been edited by Jasmine (edited 02-01-2000).]