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.49 by root, Wed Jul 13 15:23:13 2011 UTC

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