Home > Archive > PERL POE > April 2007 > Re: Can't locate object method "_init_keymap" via package "POE::Wheel:
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Can't locate object method "_init_keymap" via package "POE::Wheel:
|
|
|
| Matt Sickler wrote:
> Generally $object->_method() style names (with the leading underscore)
> represent private functions that are not documented (at least not on
> the public interface), subject to change without notice, and should
> not be used.
>
> At the very least, your error is simply a Perl one - it cant find that
> sub name for that object.
>
> If you want this feature put into the public API - talk to dgnor since
> he is the author and ask him if he can add it.
I understand that leading underscores in methods and functions generally
refer to a internal method; However, I have studied the source of
POE::Wheel::ReadLine and can find no reason why this would not work. I
have 'used' the module via POE's import interface, and Perl should be
able to find that method.
I would love to see this feature added to the public API, as I feel
it's needed. But, until then, what can I do?
| |
| Nick Williams 2007-03-06, 7:15 pm |
| Jmax wrote:
> Matt Sickler wrote:
>
>
> I understand that leading underscores in methods and functions
> generally refer to a internal method; However, I have studied the
> source of POE::Wheel::ReadLine and can find no reason why this would
> not work. I have 'used' the module via POE's import interface, and
> Perl should be able to find that method.
>
> I would love to see this feature added to the public API, as I feel
> it's needed. But, until then, what can I do?
>
Given your small test case, I can successfully run it without error, so
I think we need more problem diagnosis to move forwards..... For
example, are you sure that your perl is picking up the correct version
of POE? Which version is being used?
brillig:~/tmp/bug$ perl -le 'use POE qw(Wheel::ReadLine); print
$POE::Wheel::ReadLine::VERSION'
1.2135
brillig:~/tmp/bug$ perl bug.pl
prompt>
....
Nick
| |
|
|
|
|
|
|
|