because it has an object oriented interface. IOW it's a class not a simple procedural module.
(update: see Perl_module#Object-oriented_example )
> Can I alias some "x" to Time::Piece->strptime?
Aliasing a method can only be done by another method ..
(I don't get the point?!)
but you are free to do
sub x { Time::Piece->strptime(@_) }
be aware that the returned value is still an object.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Aliasing Module->method
by LanX
in thread Aliasing Module->method
by gerases
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |