Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Trouble getting started with Perl OO

by periapt (Hermit)
on Oct 07, 2004 at 11:52 UTC ( [id://397268]=note: print w/replies, xml ) Need Help??


in reply to Trouble getting started with Perl OO

It seems that your are not printing the entire box, just line 1. Try
sub print_shape { my $self = shift; print $self->{shape}{line1} , "\n", $self->{shape}{line2} , "\n", $self->{shape}{line3} , "\n"; }

PJ
use strict; use warnings; use diagnostics;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://397268]
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: (9)
As of 2024-04-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found