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

Comparing cvsroot/App-Staticperl/staticperl.pod (file contents):
Revision 1.34 by root, Thu Feb 10 08:58:36 2011 UTC vs.
Revision 1.35 by root, Thu Feb 10 22:44:29 2011 UTC

469=item C<--add> F<file> | C<--add> "F<file> alias" 469=item C<--add> F<file> | C<--add> "F<file> alias"
470 470
471Adds the given (perl) file into the bundle (and optionally call it 471Adds the given (perl) file into the bundle (and optionally call it
472"alias"). The F<file> is either an absolute path or a path relative to the 472"alias"). The F<file> is either an absolute path or a path relative to the
473current directory. If an alias is specified, then this is the name it will 473current directory. If an alias is specified, then this is the name it will
474use for C<@INC> searches, otherwise the path F<&file> will be used as the 474use for C<@INC> searches, otherwise the path F<file> will be used as the
475internal name. 475internal name.
476 476
477This switch is used to include extra files into the bundle. 477This switch is used to include extra files into the bundle.
478 478
479Example: embed the file F<httpd> in the current directory as F<httpd.pm> 479Example: embed the file F<httpd> in the current directory as F<httpd.pm>
483 483
484 # can be accessed via "use httpd" 484 # can be accessed via "use httpd"
485 485
486Example: add a file F<initcode> from the current directory. 486Example: add a file F<initcode> from the current directory.
487 487
488 staticperl mkperl --add initcode 488 staticperl mkperl --add 'initcode &initcode'
489 489
490 # can be accessed via "do '&initcode'" 490 # can be accessed via "do '&initcode'"
491 491
492Example: add local files as extra modules in the bundle. 492Example: add local files as extra modules in the bundle.
493 493

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines