Subject: | Minor documentation issues |
The code from the SYNOPSIS almost works as is, if "use English" is added to the top, except for:
Can't use string ("Printed 0 in 10739") as a HASH ref while "strict refs" in use at ...
There's a discrepancy between the return value in WorkHandler (it's a string) and what's expected in CallbackHandler (it's a hash with a Data value). Probably the return value should be something like { Data => "Printed $Val in $PID" }.
Also, it would be nice to mention that the data between worker and parent is serialized using JSON.pm, as the serializer restricts the possible data types (e.g. blessed objects and regexps cannot be serialized with JSON).