mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
22158a2c1e
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
15 lines
461 B
Plaintext
15 lines
461 B
Plaintext
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
|