in reply to cgi programming...

Or, even better, you could just continue using the object-oriented interface you started with and call $cgi->tr, $cgi->td, and $cgi->param instead.

Oh - and use CGI; is sufficient if you're working with OO interfaces. You don't need the ":all" quantifier.

And, I'm being serious here. Don't mix the procedural and OO interfaces. CGI can handle it, but that's because it's a helluva module. Most module authors aren't that nice, talented, motivated, and/or have that much time.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Re: cgi programming...
by atnonis (Monk) on Jan 12, 2003 at 18:51 UTC
    that's a great tip about not mixing to different things (procedural and OO interfaces).
    Im still new in perl programming and generaly in programming.
    i've tried to get rid off the ":all" quantifer but i get the following error:
    Undefined subroutine &main::param called at phbookad.pl line 13.
    i think the solution is the $cgi->param you told me, but i dont (still) know how to use it. any tip would be usefull.
    thank you
      my $name = param('name');
      becomes
      my $name = $cgi->param('name');

      ------
      We are the carpenters and bricklayers of the Information Age.

      Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.