Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Trouble getting started with Perl OO

by gothic_mallard (Pilgrim)
on Oct 07, 2004 at 12:29 UTC ( [id://397276]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Only ever produces 3 lines
    sub print_shape {
    ...
      print $self->{shape}->{line2}."\n";
      print $self->{shape}->{line3}."\n";
    }
    
  2. or download this
    # Allows for arbitary number of lines
    # (as long as they are sequentially numbered from 1)
    ...
        eval($em);
      }
    }
    
  3. or download this
    my $box = [
      '----',
      '|  |',
      '----'
    ];
    
  4. or download this
    sub print_shape {
      my $self=shift;
    ...
        print "$_\n";
      } 
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found