Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Perl module error

by toolic (Bishop)
on Oct 04, 2013 at 14:54 UTC ( #1056890=note: print w/replies, xml ) Need Help??

in reply to Perl module error

I do not get any error:
perl -c syntax OK

How are you using this? I even call it this way:

use Gate88::Bot::Core::KeyManager; my $x = Gate88::Bot::Core::KeyManager->new();

Replies are listed 'Best First'.
Re^2: Perl module error
by Vaclav_ (Novice) on Oct 04, 2013 at 15:07 UTC
    Same like you:
    use Gate88::Bot::Core::KeyManager; $s->{'keyboard'} = Gate88::Bot::Core::KeyManager->new( $s->{'gs'}, $s- +>{'nm'} );
    ($s is another object) If I comment the use... line it says syntax Ok, so it must be in the module.
      Maybe there is some problematic whitespace in your .pm file:
      cat -A

      You should download the code from your post, just like I did, and paste it into a new file.

        I did what you said, downloaded it and replaced, and it worked! But then when I add my additional code to the file, I get error again: "" did not return a true value". So what is this whitespace problem? White spaces should be ignored by perl, and I don't have new line after 1; Is it about the newline character? I'm using Notepad++ on windows.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056890]
[LanX]: new Firefox + cb sidebar do random auto expand on submit
[LanX]: probably need to start pm discussion
[LanX]: they have a constitutional referendum in turkey, kind of "do you want a dictator" and everybody opting no gets problems ...
[Corion]: LanX: Random Auto Expand?
[Corion]: LanX: Well, everybody opting "yes" will also get problems. The question is more like "Do you want problems now or problems later?"
[LanX]: and the AA had posters with a big say NO with a small "to alcohol"
[ambrus]: LanX: is it the kind of free and secret vote where there's only one box you can check?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-03-27 12:16 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.