blob: d25621c97128644b0593c23270bfec80ef3649f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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';
|