| 1 | package PAR::StrippedPARL::Dynamic; | ||
| 2 | use 5.008001; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | our $VERSION = '0.958'; | ||
| 6 | |||
| 7 | use base 'PAR::StrippedPARL::Base'; | ||
| 8 | |||
| 9 | our $Data_Pos = tell DATA; | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | PAR::StrippedPARL::Dynamic - Data package containing a dynamic PARL | ||
| 14 | |||
| 15 | =head1 SYNOPSIS | ||
| 16 | |||
| 17 | # For details, see PAR::StrippedPARL::Base. | ||
| 18 | PAR::StrippedPARL::Dynamic->write_parl($file) or die "Some error..."; | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class is internal to PAR. Do not use it outside of PAR. | ||
| 23 | |||
| 24 | This class is basically just a container for a dynamic binary PAR loader | ||
| 25 | which doesn't include the PAR code like the F<parl> or F<parl.exe> | ||
| 26 | you are used to. If you're really curious, I'll tell you it is | ||
| 27 | just a copy of the F<myldr/par> (or F<myldr/par.exe>) file. | ||
| 28 | |||
| 29 | The data is appended during the C<make> phase of the PAR build process, | ||
| 30 | but only if applicable: If you perl is static, you won't get the dynamic | ||
| 31 | loader. | ||
| 32 | |||
| 33 | If the binary data isn't appended during the build process, the class | ||
| 34 | methods will return the empty list. | ||
| 35 | |||
| 36 | =head1 CLASS METHODS | ||
| 37 | |||
| 38 | Inherits the methods from L<PAR::StrippedPARL::Base>. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | sub _data_pos { | ||
| 43 | my $class = shift; | ||
| 44 | return $Data_Pos; | ||
| 45 | } | ||
| 46 | |||
| 47 | =head1 AUTHORS | ||
| 48 | |||
| 49 | Steffen Mueller E<lt>smueller@cpan.orgE<gt>, | ||
| 50 | Audrey Tang E<lt>cpan@audreyt.orgE<gt> | ||
| 51 | |||
| 52 | =head1 COPYRIGHT AND LICENSE | ||
| 53 | |||
| 54 | Copyright 2006-2009 by Steffen Mueller E<lt>smueller@cpan.orgE<gt>. | ||
| 55 | |||
| 56 | This program is free software; you can redistribute it and/or | ||
| 57 | modify it under the same terms as Perl itself. | ||
| 58 | |||
| 59 | See F<LICENSE>. | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | $^V eq 5.44.0 | ||
| 64 | or die sprintf("Perl (%s) version (%vd) doesn't match the version (5.44.0) ". | ||
| 65 | "that PAR::Packer was built with; please rebuild PAR::Packer", | ||
| 66 | $^X, $^V); | ||
| 67 | |||
| 68 | 1; | ||
| 69 | |||
| 70 | __DATA__ |