Looking Out the Window

Most of the functions from the CGI module so far have been to control a browser—like redirect or header—or to process parameters passed to CGI programs—like escape and param. A whole set of functions in the CGI module has been designed to give you information about the system you're currently running on. A partial list is presented in Table 20.1, but for a full list, see the CGI module's online documentation by typing perldoc CGI at a command prompt.

Caution

Most of these functions rely on values that are provided by the Web server or sent by the Web browser in the HTTP protocol. Web browsers can lie about certain values—such as the referer value or user_agent—and Web servers may return inaccurate information sometimes; ...

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.