Is that "she ain't working" as in "Some output I'm expecting isn't appearing" or "My b**** ain't bringin' in da money" ;-)?. IOW, what exactly are you expecting to happen that isn't happening? I can see one obvious problem with your second version (you use "b" instead of "$b"), but I guess that's just a typo in the example you gave. Other than that you need to be aware that the children generated by Parallel::Forkmanager do not share state, so if you're manipulating some internal variable in one child the other children won't see the change.
In reply to Re: Calling a sub routine from an object
by tirwhan
in thread Calling a sub routine from an object
by carric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |