… | |
… | |
465 | use AnyEvent; |
465 | use AnyEvent; |
466 | use AnyEvent::Util (); |
466 | use AnyEvent::Util (); |
467 | |
467 | |
468 | use IO::FDPass; |
468 | use IO::FDPass; |
469 | |
469 | |
470 | our $VERSION = 1.31; |
470 | our $VERSION = 1.32; |
471 | |
471 | |
472 | # the early fork template process |
472 | # the early fork template process |
473 | our $EARLY; |
473 | our $EARLY; |
474 | |
474 | |
475 | # the empty template process |
475 | # the empty template process |
… | |
… | |
701 | $_[0][PID] |
701 | $_[0][PID] |
702 | } |
702 | } |
703 | |
703 | |
704 | =item $proc = $proc->eval ($perlcode, @args) |
704 | =item $proc = $proc->eval ($perlcode, @args) |
705 | |
705 | |
706 | Evaluates the given C<$perlcode> as ... Perl code, while setting C<@_> to |
706 | Evaluates the given C<$perlcode> as ... Perl code, while setting C<@_> |
707 | the strings specified by C<@args>, in the "main" package. |
707 | to the strings specified by C<@args>, in the "main" package (so you can |
|
|
708 | access the args using C<$_[0]> and so on, but not using implicit C<shift> |
|
|
709 | as the latter works on C<@ARGV>). |
708 | |
710 | |
709 | This call is meant to do any custom initialisation that might be required |
711 | This call is meant to do any custom initialisation that might be required |
710 | (for example, the C<require> method uses it). It's not supposed to be used |
712 | (for example, the C<require> method uses it). It's not supposed to be used |
711 | to completely take over the process, use C<run> for that. |
713 | to completely take over the process, use C<run> for that. |
712 | |
714 | |