in reply to Modify the Object
Just a cent addition to what has been said:
Please, you don't EXPORT any subroutine from module that is written to be OO.
So, your usage should be:
And to use the module, then you usepackage First; use Params::Validate qw(validate :types); sub new{ ... } ...
check these: perlmod, perlmodlib, etcuse strict; use warnings; use First; ...
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
|
---|
In Section
Seekers of Perl Wisdom