
Jasmine
Administrator
Feb 1, 2000, 3:28 PM
Post #2 of 2
(1303 views)
|
|
Re: Cookies and text with milk.
[In reply to]
|
Can't Post
|
|
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. Using single quotes around a scalar or other variable will tell Perl to treat the text within it literally. So... '$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: &SetCookies('SMM-ID',"$usrname"); 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: &SetCookies('SMM-ID',$usrname); Good luck! [This message has been edited by Jasmine (edited 02-01-2000).]
|