3 PLP::HowTo - Some examples of commong web things in PLP.
7 Additional Perl functionality is often available in modules. All of the modules
8 used in this document are available (for free) at CPAN: http://search.cpan.org/
17 AddCookie( CGI::Cookie->new(
28 Your user ID is <:= $cookie{ID} :>
34 $header{Content_Type} = 'text/plain';
40 Use DBI, and alternatively, one of the many simplifying modules. Drivers for
41 DBI are in the DBD:: namespace. DBI loads the driver automatically, but it has
45 use DBIx::Simple; # and read its documentation for examples.
48 =item allow a user to upload a file
50 Use CGI.pm, which can be used with CGI::Upload to make things easier
53 use CGI; # and don't use %post in your PLP document.
54 use CGI::Upload; # and read its documentation for examples.
56 my $upload = CGI::Upload->new($cgi);
59 =item download a file into a variable
63 my $page = get("http://foo.com/bar.html");
68 If you have good, simple examples of how to do common things with PLP, please
69 send them! (juerd@cpan.org)