books
Free Books / Computers / Practical mod_perl /

previous page: A.7. Sending Cookies in REDIRECT Responses
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: A.9. Sending Email from mod_perl

A.8. CGI::params in the mod_perlish Way




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

Assuming that all your variables are single key-value pairs, you can retrieve request parameters in a way similar to using CGI::params with this technique:

my $r = shift;  # or $r = Apache->request
my %params = $r->method eq 'POST' ? $r->content : $r->args;

Also take a look at Apache::Request, which has the same API as CGI.pm for extracting and setting request parameters but is significantly faster, since it's implemented in C.

 

Continue to:

  • prev: A.7. Sending Cookies in REDIRECT Responses
  • Table of Contents
  • next: A.9. Sending Email from mod_perl

Books by Stas Bekman:















TOP
previous page: A.7. Sending Cookies in REDIRECT Responses
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: A.9. Sending Email from mod_perl

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com