Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Strange CGI problem with POST

by r.joseph (Hermit)
on Mar 19, 2001 at 21:52 UTC ( #65485=note: print w/replies, xml ) Need Help??

in reply to Strange CGI problem with POST

Thanks alot guys. I already had -w and use strict;, so I am going to have to dig into my code a little bit more. But you defintely have a point - I need to convert PDQ.

However, just really quickly, I have a question for clairification: when using the my $cgi = CGI::new(); method, varibles can be accessed by using $cgi->param(...);, correct?

Also, what would be the best way to go about converting programs that maybe be in excess of 1,000 lines to using the above stated method?

Thanks for all the help!!


Replies are listed 'Best First'.
Re: Re: Strange CGI problem with POST
by extremely (Priest) on Mar 20, 2001 at 07:16 UTC's ReadParse is fine. Don't fix what isn't broke. Update them as you are forced to revisit them.

    Also, you don't have to use the Object Method system with CGI if you don't wish to. use CGI qw(:standard); will let you call most of the CGI methods as direct subroutines. $username= param('username'); is nice.

    $you = new YOU;
    honk() if $you->love(perl)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://65485]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2018-06-22 15:32 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.