ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/App-Staticperl/staticperl.pod
(Generate patch)

Comparing App-Staticperl/staticperl.pod (file contents):
Revision 1.31 by root, Thu Dec 23 14:16:25 2010 UTC vs.
Revision 1.32 by root, Thu Jan 20 21:32:47 2011 UTC

382=over 4 382=over 4
383 383
384=item C<--use> F<module> | C<-M>F<module> 384=item C<--use> F<module> | C<-M>F<module>
385 385
386Include the named module and trace direct dependencies. This is done by 386Include the named module and trace direct dependencies. This is done by
387C<require>'ing the module in a subprocess and tracing which other modules 387C<use>'ing the module from a fresh package in a subprocess and tracing
388and files it actually loads. 388which other modules and files it actually loads.
389 389
390Example: include AnyEvent and AnyEvent::Impl::Perl. 390Example: include AnyEvent and AnyEvent::Impl::Perl.
391 391
392 staticperl mkbundle --use AnyEvent --use AnyEvent::Impl::Perl 392 staticperl mkbundle --use AnyEvent --use AnyEvent::Impl::Perl
393 393
420code, or maybe one of the modules you use need a special use statement. In 420code, or maybe one of the modules you use need a special use statement. In
421that case, you can use C<--eval> to execute some perl snippet or set some 421that case, you can use C<--eval> to execute some perl snippet or set some
422variables or whatever you need. All files C<require>'d or C<use>'d while 422variables or whatever you need. All files C<require>'d or C<use>'d while
423executing the snippet are included in the final bundle. 423executing the snippet are included in the final bundle.
424 424
425Keep in mind that F<mkbundle> will only C<require> the modules named 425Keep in mind that F<mkbundle> will not import any symbols from the modules
426by the C<--use> option, so do not expect the symbols from modules you 426named by the C<--use> option, so do not expect the symbols from modules
427C<--use>'d earlier on the command line to be available. 427you C<--use>'d earlier on the command line to be available.
428 428
429Example: force L<AnyEvent> to detect a backend and therefore include it 429Example: force L<AnyEvent> to detect a backend and therefore include it
430in the final bundle. 430in the final bundle.
431 431
432 staticperl mkbundle --eval 'use AnyEvent; AnyEvent::detect' 432 staticperl mkbundle --eval 'use AnyEvent; AnyEvent::detect'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines