freebsd-ports/devel/p5-Method-Alias/pkg-descr
Cheng-Lung Sung 22158a2c1e Method::Alias is designed to be used as a pragma, to which you provide a
set of pairs of method names. Only very minimal checking is done, if you
wish to create infinite loops or what have you, you are more than
welcome to shoot yourself in the foot.

# Add a single method alias
    use Method::Alias 'foo' => 'bar';

# Add several method aliases
    use Method::Alias 'a' => 'b',
    'c' => 'd',
    'e' => 'f';

WWW: http://search.cpan.org/dist/Method-Alias
2007-05-25 07:12:32 +00:00

14 lines
461 B
Text

Method::Alias is designed to be used as a pragma, to which you provide a
set of pairs of method names. Only very minimal checking is done, if you
wish to create infinite loops or what have you, you are more than
welcome to shoot yourself in the foot.
# Add a single method alias
use Method::Alias 'foo' => 'bar';
# Add several method aliases
use Method::Alias 'a' => 'b',
'c' => 'd',
'e' => 'f';
WWW: http://search.cpan.org/dist/Method-Alias