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

Re: Need help with OO perl

by kyle (Abbot)
on Dec 27, 2008 at 02:37 UTC ( [id://732740]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     my $lib = test1->new();
     ($self->{lib}) = ($lib->print_name());
    
  2. or download this
     my $lib = test1->new();
     $self->{lib} = $lib;
     $lib->print_name();
    
  3. or download this
     $self->{lib} = test1->new();
     $self->{lib}->print_name();
    
  4. or download this
    sub print_name {
        my $self = shift;
        print "I forgot what went here";
        return $self;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found