… | |
… | |
469 | =item C<--add> F<file> | C<--add> "F<file> alias" |
469 | =item C<--add> F<file> | C<--add> "F<file> alias" |
470 | |
470 | |
471 | Adds the given (perl) file into the bundle (and optionally call it |
471 | Adds 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 |
473 | current directory. If an alias is specified, then this is the name it will |
473 | current directory. If an alias is specified, then this is the name it will |
474 | use for C<@INC> searches, otherwise the path F<&file> will be used as the |
474 | use for C<@INC> searches, otherwise the path F<file> will be used as the |
475 | internal name. |
475 | internal name. |
476 | |
476 | |
477 | This switch is used to include extra files into the bundle. |
477 | This switch is used to include extra files into the bundle. |
478 | |
478 | |
479 | Example: embed the file F<httpd> in the current directory as F<httpd.pm> |
479 | Example: 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 | |
486 | Example: add a file F<initcode> from the current directory. |
486 | Example: 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 | |
492 | Example: add local files as extra modules in the bundle. |
492 | Example: add local files as extra modules in the bundle. |
493 | |
493 | |