From 698bc959a599ad7b925718fc5ffb1e83e8205294 Mon Sep 17 00:00:00 2001 From: Rainer Tammer Date: Fri, 7 Jan 2011 10:14:27 +0000 Subject: [PATCH] Minor problem in cookie.t Signed-off-by: Chris 'BinGOs' Williams --- cpan/CGI/t/cookie.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpan/CGI') diff --git a/cpan/CGI/t/cookie.t b/cpan/CGI/t/cookie.t index 8249f0798e..f10d3b6a4f 100644 --- a/cpan/CGI/t/cookie.t +++ b/cpan/CGI/t/cookie.t @@ -50,8 +50,8 @@ my @test_cookie = ( is_deeply(\@array, [], " parse('') returns an empty array in list context (undocumented)"); is_deeply($scalar, {}, " parse('') returns an empty hashref in scalar context (undocumented)"); - my @array = CGI::Cookie->parse(undef); - my $scalar = CGI::Cookie->parse(undef); + @array = CGI::Cookie->parse(undef); + $scalar = CGI::Cookie->parse(undef); is_deeply(\@array, [], " parse(undef) returns an empty array in list context (undocumented)"); is_deeply($scalar, {}, " parse(undef) returns an empty hashref in scalar context (undocumented)"); } @@ -356,7 +356,7 @@ MAX_AGE: { is $cookie->expires, 'Thu, 01-Jan-1970 00:01:40 GMT'; is $cookie->max_age => undef, 'max-age is undefined when setting expires'; - my $cookie = CGI::Cookie->new( -name=>'a', 'value'=>'b' ); + $cookie = CGI::Cookie->new( -name=>'a', 'value'=>'b' ); $cookie->max_age( '+4d' ); is $cookie->expires, undef, 'expires is undef when setting max_age'; -- cgit v1.2.1