> -----Original Message----- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 31, 2002 4:47 AM > To: [EMAIL PROTECTED] > Subject: Is it a difference? > > > Hi all, > > I've seen these 2 types of defining the CGI object and both work. > > my $q = new CGI; > my $q = CGI -> new(); > > Can I use any of these 2 lines with no problem. > I haven't seen explanations for the differences between these lines.
These are equivalent. See the discussion under "Method Invocation" in perldoc perlobj. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]