Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In the sessions file, I have:open(SESSIONS, "sessions"); $id = new Math::BigInt '123 456 789 123 456 789'; $c = new CGI::Cookie(-name => 'NetAppliance1.0', -value => $id, -path => '/cgi-bin/' -secure => 0 ); # finished. let's jam it out there print "Set-Cookie: $c\n"; print "Content-Type: text/html\n\n"; print SESSIONS "ID:$id";
but on STDOUT I have:ID:+123456789123456789
What am I doing wrong? Thanks.Set-Cookie: NetAppliance1.0= Content-Type: text/html
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing BigInts
by ahunter (Monk) on Jul 12, 2000 at 18:56 UTC | |
by Anonymous Monk on Jul 12, 2000 at 21:17 UTC | |
by chromatic (Archbishop) on Jul 12, 2000 at 21:49 UTC | |
|
(jjhorner)Printing BigInts
by jjhorner (Hermit) on Jul 12, 2000 at 18:49 UTC |