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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 11 ■ DEVELOPMENT WITH MOD_PERL 213Figure 11-8. Output from the args() methodAnother way <strong>to</strong> call the args() method is <strong>to</strong> cast it in<strong>to</strong> a scalar, as shown in Listing 11-5(Printquery2.cgi).Listing 11-5. Casting args() in<strong>to</strong> a Scalaruse strict;my $r = shift;$r->send_http_header('text/plain');print "Query String: ", scalar $r->args, "\n";This example produces output as it was received, including ampersands and equal signs,as illustrated in Figure 11-9.

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

Saved successfully!

Ooh no, something went wrong!