Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Trying to learn how to build a module

by arturo (Vicar)
on Feb 02, 2001 at 20:01 UTC ( [id://56008]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub new {
        my $class = shift;
    ...
        bless $self, $class;
        $self; # returns $self (blessed hashref) 
    }
    
  2. or download this
    sub get_ foo {
        my $self = shift;
    ...
        my $self = shift;
        $self->{foo} = shift;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://56008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found