| Next: Singleton::DBI | Previous: HTML::Scrubber | [Table of Contents] |
Singleton::CGI - A singleton wrapper around the CGI object.
#!/usr/bin/perl -w
use Singleton::CGI;
use strict;
my $cgi = Singleton::CGI->instance();
$cgi->param( "bob" );
This module implements a Singleton wrapper around the CGI module. This allows all areas of the codebase to easily and consistently access any submitted CGI parameters.
Gain access to the single instance of our CGI object.
Create a new instance of this object. This is only ever called once since this class is a Singleton.
Steve Kemp
http://www.steve.org.uk/
Copyright (c) 2005-2007 by Steve Kemp. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.