Vaclav_ has asked for the wisdom of the Perl Monks concerning the following question:
Can you help me why does this code give the following error:
"Missing right curly or square bracket at Gate88/Bot/Core/KeyManager.pm line 1, at end of line
syntax error at Gate88/Bot/Core/KeyManager.pm line 1, at EOF"
If I remove the method new, perl says syntax is Ok.package Gate88::Bot::Core::KeyManager; use strict; use warnings; sub new { my $class = shift; my $gs = shift; my $nm = shift; my $self = bless({ 'gs' => $gs, 'nm' => $nm, }, $class); return $self; } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl module error
by toolic (Bishop) on Oct 04, 2013 at 14:54 UTC | |
by Vaclav_ (Novice) on Oct 04, 2013 at 15:07 UTC | |
by toolic (Bishop) on Oct 04, 2013 at 15:17 UTC | |
by Vaclav_ (Novice) on Oct 04, 2013 at 22:56 UTC | |
by Anonymous Monk on Oct 05, 2013 at 01:45 UTC | |
Re: Perl module error
by boftx (Deacon) on Oct 04, 2013 at 23:36 UTC | |
by Vaclav_ (Novice) on Oct 05, 2013 at 01:35 UTC | |
by boftx (Deacon) on Oct 05, 2013 at 02:06 UTC | |
by Anonymous Monk on Oct 05, 2013 at 01:42 UTC | |
by Vaclav_ (Novice) on Oct 05, 2013 at 02:00 UTC | |
by Anonymous Monk on Oct 05, 2013 at 02:13 UTC |
Back to
Seekers of Perl Wisdom