Acme::UNIVERSAL::new - the only constructor you ever need
Version 0.01
Acme::UNIVERSAL::new provides UNIVERSAL::new(), the only constructor you will ever need:
Acme::UNIVERSAL::new
UNIVERSAL::new()
use Acme::UNIVERSAL::new; my $q = UNIVERSAL::new( 'CGI' ); my $dbh = UNIVERSAL::new( 'dbi:Pg:dbname=my_db', '', '', {} ); # ...
Just call UNIVERSAL::new() as a function, passing whatever arguments you want, and you will receive an appropriate object.
This module provides only one useful function:
UNIVERSAL::new
The universal constructor. Pass in arguments. Get back an object. What could be easier?
There are a few other functions:
get_class( $symbol_table, $name_prefix )
Returns a random class name, after finding everything that looks like a class beneath the given $symbol_table reference named $name_prefix. If you pass neither argument, this starts in the main symbol table.
$symbol_table
$name_prefix
get_ref()
Returns a random blessable reference.
has_constructor( $class_name )
Returns true if the given class has a constructor named new() that is not UNIVERSAL::new().
new()
get_symbols( $symbol_table )
Returns a hash of symbol tables and their plain names.
Copyright 2006 chromatic, chromatic at wgz dot org
chromatic at wgz dot org
None. Seriously. Don't file any.
You may use, modify, and distribute this module under the same terms as Perl itself.
To install Acme::UNIVERSAL::new, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::UNIVERSAL::new
CPAN shell
perl -MCPAN -e shell install Acme::UNIVERSAL::new
For more information on module installation, please visit the detailed CPAN module installation guide.