Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Hashes and Cookies (or more to the point, strings)by bikeNomad (Priest) |
on Jul 19, 2001 at 19:23 UTC ( [id://98108]=note: print w/replies, xml ) | Need Help?? |
The problem is that the assignment isn't parsed as it would be in your source text.
The fastest thing to do is to split it:
Or you can use string eval on your quoted string (but why?):
update: But don't do that. As crazyinsomniac points out, it's not a really good idea to eval cookie contents...
In Section
Seekers of Perl Wisdom
|
|