in reply to Can't Call method error
then call the method usingsub StartTable { my $class = shift; my %self = @_; my $color = $self{'Color'}; ... }
In the meantime, merlyn wrote an awesome intro to OO which will help you get past the hurdles to the concept, and (as an unintended side-effect) improve your use of modules-- check perldoc perlboot in any Perl 5.6+ install.$sm->StartTable( Color => 'Ugly Yellow', Height => 'Too Tall', Width => 'Skinny');
|
|---|