Re: Getting "POE::Kernel's run() method was never called" when using run_one_timeslice

2005-09-05 Thread David Davis
If you call $poe_kernel->run(); without any sessions created yet, then it will return immediately. Call that, then use run_one_timeslice and no warning will be produced. David On 9/5/05, Jay Strauss <[EMAIL PROTECTED]> wrote: > > Rocco Caputo wrote: > > On Sep 5, 2005, at 17:43, Jay Strauss wr

POE vs. The System Clock

2005-09-05 Thread Rocco Caputo
I recently re-read the thread about SIGCHLD delivery vs. DST changes. That got me thinking about whether alarm() is affected by clock changes, so I wrote a little test program (attached) to try it out. Mac OS X's alarm() triggers reliably every second or so, even when I play around with

Re: Getting "POE::Kernel's run() method was never called" when using run_one_timeslice

2005-09-05 Thread Rocco Caputo
On Sep 5, 2005, at 21:37, Jay Strauss wrote: Rocco Caputo wrote: On Sep 5, 2005, at 17:43, Jay Strauss wrote: I'm getting "POE::Kernel's run() method was never called." error when my script that calls the code below ends. I could put a ->run and ->("shutdown") into a sub DESTROY. But

Re: Getting "POE::Kernel's run() method was never called" when using run_one_timeslice

2005-09-05 Thread Jay Strauss
Rocco Caputo wrote: On Sep 5, 2005, at 17:43, Jay Strauss wrote: I'm getting "POE::Kernel's run() method was never called." error when my script that calls the code below ends. I could put a ->run and ->("shutdown") into a sub DESTROY. But is there a way I'm supposed to avoid this error.

Re: PoCo::Client::HTTP Bug

2005-09-05 Thread Rocco Caputo
On May 5, 2005, at 16:23, Tim Cheadle wrote: On Thu, 2005-05-05 at 10:48 -0400, Tim Cheadle wrote: Any reason not to do this for other methods as well? Because the other methods in HTTP 1.0 (GET and HEAD) don't require it, nor does it make sense as they don't have any post-header content

Re: Getting "POE::Kernel's run() method was never called" when using run_one_timeslice

2005-09-05 Thread Rocco Caputo
On Sep 5, 2005, at 17:43, Jay Strauss wrote: I'm getting "POE::Kernel's run() method was never called." error when my script that calls the code below ends. I could put a ->run and ->("shutdown") into a sub DESTROY. But is there a way I'm supposed to avoid this error. POE::Kernel isn't de

Getting "POE::Kernel's run() method was never called" when using run_one_timeslice

2005-09-05 Thread Jay Strauss
Hi, I'm getting "POE::Kernel's run() method was never called." error when my script that calls the code below ends. I could put a ->run and ->("shutdown") into a sub DESTROY. But is there a way I'm supposed to avoid this error. Thank you Jay package TradeStudy::BrokerClient; use 5.008

Re: using POE in a object being called procedurally

2005-09-05 Thread Jay Strauss
I'm an idiot. I asked a very similar question 2yrs ago on this list. I just found the answer Thanks Jay

Re: using POE in a object being called procedurally

2005-09-05 Thread Matt S Trout
On Mon, Sep 05, 2005 at 02:34:51PM -0500, Jay Strauss wrote: > Matt S Trout wrote: > >On Sun, Sep 04, 2005 at 05:54:12PM -0500, Jay Strauss wrote: > > > >>Is there a better way? > > > > > >Try the following (lines still starting > are untouched) - > > > > > >>package TradeStudy::BrokerClient; > >>

Re: using POE in a object being called procedurally

2005-09-05 Thread Jay Strauss
Matt S Trout wrote: On Sun, Sep 04, 2005 at 05:54:12PM -0500, Jay Strauss wrote: Is there a better way? Try the following (lines still starting > are untouched) - package TradeStudy::BrokerClient; use 5.008004; use strict; use warnings; use base qw(Class::Accessor); use POE qw(Component

Re: using POE in a object being called procedurally

2005-09-05 Thread Jay Strauss
Matt S Trout wrote: On Sun, Sep 04, 2005 at 05:54:12PM -0500, Jay Strauss wrote: Is there a better way? Try the following (lines still starting > are untouched) - package TradeStudy::BrokerClient; use 5.008004; use strict; use warnings; use base qw(Class::Accessor); use POE qw(Component

Re: using POE in a object being called procedurally

2005-09-05 Thread Matt S Trout
On Sun, Sep 04, 2005 at 05:54:12PM -0500, Jay Strauss wrote: > Is there a better way? Try the following (lines still starting > are untouched) - > package TradeStudy::BrokerClient; > > use 5.008004; > use strict; > use warnings; > > use base qw(Class::Accessor); > use POE qw(Component::Client::

Re: POElitically incorrect question

2005-09-05 Thread Rich Morin
At 9:24 PM -0600 9/2/05, Chris Fedde wrote: Interoperate? how? they can punt xml/rpc or some such at each other. I've done some POE clients to .net services with SOAP::Lite. Is that what you are talking about? Approximately. As I understand it, POE provides an environment where Perl script