BernieC has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't bless
by choroba (Cardinal) on Mar 21, 2021 at 15:51 UTC | |
by BernieC (Pilgrim) on Mar 21, 2021 at 17:45 UTC | |
by choroba (Cardinal) on Mar 21, 2021 at 19:07 UTC | |
by Anonymous Monk on Mar 22, 2021 at 05:08 UTC | |
by ikegami (Patriarch) on Mar 22, 2021 at 08:19 UTC | |
|
Re: Can't bless
by GrandFather (Saint) on Mar 21, 2021 at 20:33 UTC | |
by perlfan (Parson) on Mar 27, 2021 at 16:10 UTC |