Are there any downsides to not using the OO syntax? -----Original Message----- From: Curtis Poe [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 2:40 PM To: [EMAIL PROTECTED]; Balint, Jess Cc: '[EMAIL PROTECTED]' Subject: Re: CGI.pm Question
-- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Nov 9, Balint, Jess said: > > >Hello all, I was wonder if there is a way to do this with less `$query->`'s. > >And yes, I know the table's not perfect. Any input would be appreciated. > >Thanks. > > Don't use the OO syntax then. > > use CGI qw( :standard ); > > print > start_form, > start_table(...), > Tr( > td(...), > ..., > ), > ...; > > You get the idea. Almost. If you want to use start_table() as a function, you need to import it: use CGI qw( :standard *table ); Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]