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);
In reply to Re: Problem with ForkManager
by chrestomanci
in thread Problem with ForkManager
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |