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?