ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-Fork/Fork.pm
(Generate patch)

Comparing AnyEvent-Fork/Fork.pm (file contents):
Revision 1.60 by root, Wed Sep 25 11:05:30 2013 UTC vs.
Revision 1.61 by root, Wed Nov 20 15:24:28 2013 UTC

256 256
257 my $stderr = $cv->recv; 257 my $stderr = $cv->recv;
258 258
259=head2 For stingy users: put the worker code into a C<DATA> section. 259=head2 For stingy users: put the worker code into a C<DATA> section.
260 260
261When you want to be stingy with files, you cna put your code into the 261When you want to be stingy with files, you can put your code into the
262C<DATA> section of your module (or program): 262C<DATA> section of your module (or program):
263 263
264 use AnyEvent::Fork; 264 use AnyEvent::Fork;
265 265
266 AnyEvent::Fork 266 AnyEvent::Fork
276 276
277=head2 For stingy standalone programs: do not rely on external files at 277=head2 For stingy standalone programs: do not rely on external files at
278all. 278all.
279 279
280For single-file scripts it can be inconvenient to rely on external 280For single-file scripts it can be inconvenient to rely on external
281files - even when using < C<DATA> section, you still need to C<exec> 281files - even when using a C<DATA> section, you still need to C<exec> an
282an external perl interpreter, which might not be available when using 282external perl interpreter, which might not be available when using
283L<App::Staticperl>, L<Urlader> or L<PAR::Packer> for example. 283L<App::Staticperl>, L<Urlader> or L<PAR::Packer> for example.
284 284
285Two modules help here - L<AnyEvent::Fork::Early> forks a template process 285Two modules help here - L<AnyEvent::Fork::Early> forks a template process
286for all further calls to C<new_exec>, and L<AnyEvent::Fork::Template> 286for all further calls to C<new_exec>, and L<AnyEvent::Fork::Template>
287forks the main program as a template process. 287forks the main program as a template process.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines