… | |
… | |
553 | |
553 | |
554 | If you specify an alias you should probably add a C</> prefix to avoid |
554 | If you specify an alias you should probably add a C</> prefix to avoid |
555 | clashing with embedded perl files (whose paths never start with C</>), |
555 | clashing with embedded perl files (whose paths never start with C</>), |
556 | and/or use a special directory prefix, such as C</res/name>. |
556 | and/or use a special directory prefix, such as C</res/name>. |
557 | |
557 | |
558 | You can later get a copy of these files by calling C<staticperl::find |
558 | You can later get a copy of these files by calling C<static::find |
559 | "alias">. |
559 | "alias">. |
560 | |
560 | |
561 | An alternative way to embed binary files is to convert them to perl and |
561 | An alternative way to embed binary files is to convert them to perl and |
562 | use C<do> to get the contents - this method is a bit cumbersome, but works |
562 | use C<do> to get the contents - this method is a bit cumbersome, but works |
563 | both inside and outside of a staticperl bundle, without extra ado: |
563 | both 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 | |
1204 | Returns the data associated with the given C<$path> |
1204 | Returns 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 | |
1207 | Returns C<undef> if the file isn't embedded. |
1207 | Returns C<undef> if the file isn't embedded. |
1208 | |
1208 | |
1209 | =item @paths = staticperl::list |
1209 | =item @paths = static::list |
1210 | |
1210 | |
1211 | Returns the list of all paths embedded in this binary. |
1211 | Returns the list of all paths embedded in this binary. |
1212 | |
1212 | |
1213 | =back |
1213 | =back |
1214 | |
1214 | |