in reply to Problem with ForkManager
You need to pass in a function reference to run_on_finish(). You could write:
or:my $hello_ref = sub { print "Hello!\n"; }; $pm->run_on_finish($hello_ref);
sub hello { print "Hello!\n"; } $pm->run_on_finish(\&hello);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with ForkManager
by Anonymous Monk on May 10, 2011 at 19:36 UTC |