X-Git-Url: http://git.shiar.net/gitweb.cgi/perl/plp/.git/blobdiff_plain/b5e0ee87251670be18b2f2fc128a4be0b25ebfb8..4b924b1351d4a8ea42652533081a3ea62df110e4:/lib/PLP/Functions.pm diff --git a/lib/PLP/Functions.pm b/lib/PLP/Functions.pm index 28815cd..f362167 100644 --- a/lib/PLP/Functions.pm +++ b/lib/PLP/Functions.pm @@ -1,9 +1,12 @@ package PLP::Functions; -use base 'Exporter'; -use Fcntl qw(:flock); use strict; +use warnings; + +use Exporter qw(import); +use Fcntl qw(:flock); +our $VERSION = '1.00'; our @EXPORT = qw/Entity DecodeURI EncodeURI Include include PLP_END AddCookie ReadFile WriteFile AutoURL Counter exit/; @@ -72,7 +75,7 @@ sub EncodeURI (@) { sub AddCookie ($) { if ($PLP::Script::header{'Set-Cookie'}) { - $PLP::Script::header{'Set-Cookie'} .= "\nSet-Cookie: $_[0]"; + $PLP::Script::header{'Set-Cookie'} .= "\n" . $_[0]; } else { $PLP::Script::header{'Set-Cookie'} = $_[0]; }