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