10.07.2015 Views

Beginning Web Development With Perl : From Novice to ... - Nabo

Beginning Web Development With Perl : From Novice to ... - Nabo

Beginning Web Development With Perl : From Novice to ... - Nabo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

352■INDEXlogging based on, 229printing from headers_in() output,219–220User Datagram Pro<strong>to</strong>col (UDP), 128user() method, 111usernamesdatabase security for s<strong>to</strong>red, 70–71setting up for POP3 servers, 111■Vvaluescomparing string, 304–306viewing variable, 313–315variables, 306–313about, 306au<strong>to</strong>increment and au<strong>to</strong>decrement,308–310checking tainted use of, 33declaring with leading underscore, 245defined, 285defining and setting for templates,244–245FOREACH directive with loop, 250interpolating, 313–315interpolating $, 242lexical, 310–312mathematical operations on template,245–246modifying, 306–308names of, 313special, 313syntax for operating and assigning at once,308testing definitions with if statements, 320virtual methods for manipulating, 246verbose output, 28versionsCGI module, 4–5RSS, 153, 159viewingenvironment variables in CGI script, 23–24name_value pairs with headers_in()method, 218–219virtual methods, 246■Wwarnings on shebang line, 202web forms. See formsweb serverssetting timeouts, 98–99support for HEAD method by, 94<strong>Web</strong> Service Definition Language (WSDL),138web sites. See also templatesbuilding from template, 257, 259–261building web page, 278–279controlling browser redirects, 99converting <strong>to</strong> Mason, 233creating site configuration file withTemplate Toolkit, 257–259Mason for, 263–264mirroring, 102password and username authenticationfor, 101–102removing HTML tags from page, 103–104sending additional header lines <strong>to</strong> pages,99setting additional parameters for get()function, 98setting web page timeouts, 98–99SOAP interfaces used by, 139updating with ttree program, 236–240while behavior, 327–328WHILE directives, 252while loopsabout, 326–327infinite, 329using while as statement modifier,332–333while behavior, 327–328white space in <strong>Perl</strong> programs, 285wildcard hosts (%)defined, 59pushing query results in<strong>to</strong> array <strong>to</strong> find,59–60WRAPPER directives, 248writingerror logs, 227–229<strong>to</strong> filehandles, 76first <strong>Perl</strong> program, 283–285RSS, 159–162WSDL (<strong>Web</strong> Service Definition Language), 138-w option, 28■X-X file tests, 76–77XML (eXtensible Markup Language). See alsoSOAP::Lite; XML::RSS modulecreating SAX2 handler package for parsing,176–177parsing considerations in, 166security with parsing, 180SOAP and, 137stream-based parsing, 165–166tree-based parsing, 166, 179–180XML::SAX for parsing, 172–179XML::Simple for parsing, 166–168XML::Grove, 179XML::LibXML::SAX::Parser, 172XML::Parser, 179XML::RSS::Feed module, 163XML::RSS moduledebugging RSS scripts, 158–159, 163parsing RSS feeds, 155–157, 163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!