NAME

package - makes an alias of the current package

SYNOPSIS

package ThisPAckage;

sub new { }

use package "Alias", qw'new';

&Alias::new;

or

package main;

package::alias('Alias', 'Original');

my $alias = new Alias();
$alias->sub_from_original;

DESCRIPTION

use package makes an alias of the current package and establishs IS-A relationship with current package and alias at compile time

METHODS

alias($alias, $original, @import)

use package makes as alias of the original and imports the symbols in import in the namespace of alias

currently imports only function names

package::alias($alias, $original, qw'importnames basename dirname');

AUTHOR

Holger Seelig holger.seelig@yahoo.de

COPYRIGHT

This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.