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.48 by root, Sun Jul 10 01:37:56 2011 UTC vs.
Revision 1.50 by root, Wed Jul 13 17:47:40 2011 UTC

11 staticperl install # build and then install perl 11 staticperl install # build and then install perl
12 staticperl clean # clean most intermediate files (restart at configure) 12 staticperl clean # clean most intermediate files (restart at configure)
13 staticperl distclean # delete everything installed by this script 13 staticperl distclean # delete everything installed by this script
14 staticperl perl ... # invoke the perlinterpreter 14 staticperl perl ... # invoke the perlinterpreter
15 staticperl cpan # invoke CPAN shell 15 staticperl cpan # invoke CPAN shell
16 staticperl instmod path... # install unpacked modules 16 staticperl instsrc path... # install unpacked modules
17 staticperl instcpan modulename... # install modules from CPAN 17 staticperl instcpan modulename... # install modules from CPAN
18 staticperl mkbundle <bundle-args...> # see documentation 18 staticperl mkbundle <bundle-args...> # see documentation
19 staticperl mkperl <bundle-args...> # see documentation 19 staticperl mkperl <bundle-args...> # see documentation
20 staticperl mkapp appname <bundle-args...> # see documentation 20 staticperl mkapp appname <bundle-args...> # see documentation
21 21
553 553
554If you specify an alias you should probably add a C</> prefix to avoid 554If you specify an alias you should probably add a C</> prefix to avoid
555clashing with embedded perl files (whose paths never start with C</>), 555clashing with embedded perl files (whose paths never start with C</>),
556and/or use a special directory prefix, such as C</res/name>. 556and/or use a special directory prefix, such as C</res/name>.
557 557
558You can later get a copy of these files by calling C<staticperl::find 558You can later get a copy of these files by calling C<static::find
559"alias">. 559"alias">.
560 560
561An alternative way to embed binary files is to convert them to perl and 561An alternative way to embed binary files is to convert them to perl and
562use C<do> to get the contents - this method is a bit cumbersome, but works 562use C<do> to get the contents - this method is a bit cumbersome, but works
563both inside and outside of a staticperl bundle, without extra ado: 563both inside and outside of a staticperl bundle, without extra ado:
1197 1197
1198=head3 FUNCTIONS 1198=head3 FUNCTIONS
1199 1199
1200=over 4 1200=over 4
1201 1201
1202=item $file = staticperl::find $path 1202=item $file = static::find $path
1203 1203
1204Returns the data associated with the given C<$path> 1204Returns the data associated with the given C<$path>
1205(e.g. C<Digest/MD5.pm>, C<auto/POSIX/autosplit.ix>). 1205(e.g. C<Digest/MD5.pm>, C<auto/POSIX/autosplit.ix>).
1206 1206
1207Returns C<undef> if the file isn't embedded. 1207Returns C<undef> if the file isn't embedded.
1208 1208
1209=item @paths = staticperl::list 1209=item @paths = static::list
1210 1210
1211Returns the list of all paths embedded in this binary. 1211Returns the list of all paths embedded in this binary.
1212 1212
1213=back 1213=back
1214 1214

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines