… | |
… | |
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<shit> |
|
|
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 | |