Re: POE::Wheel::Run::Win32 and Win32::Daemon

Andrew Feren <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
In my experience Perl on Windows does not handle the (Program => \&foo) 
case well at all.  I have had better luck with the (Program => sub { 
foo() }) case, but even that seems a bit iffy to me.

I'm still waiting for someone who can explain why sub{ foo() } sometimes 
works when \&foo doesn't.

I've run into issues in this area a couple times, most recently 
https://rt.cpan.org/Ticket/Display.html?id=42890.

-Andrew

Rocco Caputo wrote:
> The question in my mind: If fork() is so troublesome on Windows, do we 
> have an alternative?
>
> For the (Program => "foo.exe") form, we can possibly avoid fork() 
> altogether.  
> http://rt.cpan.org/Public/Bug/Display.html?id=48715#txn-659406 includes 
> some code that promises to work well.
>
> For the (Program => \&foo) case, I don't know.  Can Perl on Windows 
> handle that well at all?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.