Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Modify the Object

by 2teez (Priest)
on Oct 02, 2012 at 13:13 UTC ( #996857=note: print w/replies, xml ) Need Help??


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:

package First; use Params::Validate qw(validate :types); sub new{ ... } ...
And to use the module, then you use
use strict; use warnings; use First; ...
check these: perlmod, perlmodlib, etc

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996857]
help
Chatterbox?
[virtualsue]: I need to get some cat pics into my talk http://www.cat- lovers-only.com/ images/three-cat- burritos-to-go-500 .jpg
[holli]: put mine in :)
[holli]: instant cat fame
[virtualsue]: nice photo

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-11-21 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (300 votes). Check out past polls.

    Notices?