I get:use strict ; use warnings ; package PENDULUM ; sub new { shift @_ ; my $pend = {} ; bless $pend, PENDULUM ; return $pend ; }
I can't see what I'm doing wrong but it must be something obvious/trivial... sighperl -c packtest.pl Bareword "PENDULUM" not allowed while "strict subs" in use at packates +t.pl line 9. packtest.pl had compilation errors.
In reply to Can't bless by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |