in reply to Re: Aliasing Module->method
in thread Aliasing Module->method
Yeah, I wanted to alias the method call to a symbol within my program so I didn't have to type that much. So if the original is
Time::Piece->strptime
... I wanted it to become:
x->strptime.
But on second thought, I of course could have created an object for Time::Piece and called strptime on the object. Didn't occur to me at the time I was writing it. I thought strptime was a CLASS method.
All is good, thank you for making me think!
|
---|
In Section
Seekers of Perl Wisdom