good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Need help in translating the following php code to perlby davido (Cardinal) |
on Oct 29, 2013 at 22:49 UTC ( [id://1060234]=note: print w/replies, xml ) | Need Help?? |
Use the CGI module if you're doing CGI with Perl. It provides a header() method, and a param() method, which mostly work as you expect. Read the POD for details. It's been years since I last messed around with plain old CGI, and I don't even have a CGI-enabled environment configured at the moment that I can use for testing.
The header method conveniently passes through parameters that it doesn't know what to do with. For example, '-pragma' becomes 'Pragma: ' For the brave new world in web work, see Mojolicious or Mojolicious::Lite, or Dancer. Dave
In Section
Seekers of Perl Wisdom
|
|