You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "G.W. Haywood" <ge...@www.jubileegroup.co.uk> on 2000/06/29 18:09:29 UTC

use integer and CGI::Cookie

Hi Stas,

Just a small point, maybe there's a place for it in the Guide?.

The following doesn't work

use integer;
use CGI::Cookie;
my $q = new CGI::Cookie( -name => ... );

because the `-' in `-name' is misinterpreted as a negative sign.

To get it to work, write

my $q = new CGI::Cookie( '-name' => ... );


Aaarrgghh.

73,
Ged.