From: Francis Turner [mailto:turner@;biocatalysis.com]
> 
> Running win2k and Activestate perl 5.6.1 build 631
> 
> I've downloaded the latest POE from sourceforge following the ppm 
> instructions
> 
> and I'm trying to run the 
> http://poe.perl.org/?POE_Cookbook/Web_Server 
> script as a test and to gan experience with POE
> 
> Unfortunately I get this error:
> 
> POE::Component::Server::TCP->new() needs an Acceptor parameter at 
> C:\perl\bin\pws.pl line 61

Could you attach or inline the script in question? Without the code, it is
hard to know what might be wrong.
 

> which seesm to be reasonable from my POE documentation which 
> says that the syntax is:
>    POE::Component::Server::TCP->new
>      ( Port     => $bind_port,
>        Address  => $bind_address,    # Optional.
>        Acceptor => \&accept_handler,
>        Error    => \&error_handler,  # Optional.
>      );
> 
> So here are my dumb questions:
> 1) did I cock up my ppm install so that I don't actually have 
> the latest POE

Yes. The latest version can be found via
http://poe.perl.org/?Where_to_Get_POE


> 1a) If so how can I tell what is the version of POE i'm running?

perl -MPOE -e print($POE::VERSION)


> 2) Assuming I do have the latest POE has the syntax been drastically 
> changed or is his a simple change?

Many things have changed... but I'm pretty sure your example should still
work.

--
Garrett Goebel
IS Development Specialist

ScriptPro                   Direct: 913.403.5261
5828 Reeds Road               Main: 913.384.1008
Mission, KS 66202              Fax: 913.384.2180
www.scriptpro.com          [EMAIL PROTECTED]
 

Reply via email to