From: Gurusamy Sarathy Date: Sat, 4 Mar 2000 03:51:05 +0000 (+0000) Subject: avoid ambiguity in indirect object notation (breaks with overridden X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07b2059fdd2893c21ae5c908888bc15213edf4c0;p=p5sagit%2Fp5-mst-13.2.git avoid ambiguity in indirect object notation (breaks with overridden run time require) p4raw-id: //depot/perl@5502 --- diff --git a/lib/CGI.pm b/lib/CGI.pm index ad7cd02..a518598 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -2281,7 +2281,7 @@ sub cookie { push(@param,'-expires'=>$expires) if $expires; push(@param,'-secure'=>$secure) if $secure; - return new CGI::Cookie(@param); + return CGI::Cookie->new(@param); } END_OF_FUNC