PAR::St...RL::Base(3)
bestie, welcome to the PAR::St...RL::Base(3) page from User Contributed Perl Documentation π
this one is also PAR::StrippedPARL::Base, aka the base class for the PARL data packages, and it's giving internal-PAR-only energy, iykyk.
β¨ NAME β¨
PAR::StrippedPARL::Base β Base class for the PARL data packages.
π SYNOPSIS π
okay so the synopsis literally tells you to use a sibling of this class instead, not this base class directly:
# Please use one of the siblings of this class instead.
use base 'PAR::StrippedPARL::Base';
πΈ DESCRIPTION πΈ
okay so first things first: this class is internal to PAR. Do not use it outside of PAR, bestie β that's the whole rule. π¨
Basically, this class is just a container for a static binary PAR loader. And no, this loader doesn't include the PAR code like the parl or parl.exe you're used to. If you're really curious, the page spills: it is just a copy of the myldr/static (or myldr/static.exe) file. π«Ά
The data gets appended during the "make" phase of the PAR build process. (Yes, the build process is doing the appending.)
If the binary data isn't appended during the build process, the two class methods will return the empty list. That's it. No data, no vibes. π
π CLASS METHODS π
here's the method tea β
π οΈ write_parl π οΈ
Takes a file name as its argument, bestie. It writes the raw binary data in the package to the specified file, and it embeds the core modules to produce a complete PAR loader (parl). Slay. β¨
Returns true on success or the empty list on failure.
π§ get_raw π§
Returns the binary data attached to the data package. That's the whole vibe.
Returns the empty list on failure. π
π write_raw π
Takes a file name as its argument and writes the binary data to the file. Simple, iconic.
Returns true on success and the empty list on failure.
π¦ SUBCLASSING π¦
Subclasses need to implement the _data_pos class method, and that method returns the value of tell DATA as it was after the class was loaded. No cap, that's the whole subclassing requirement on this page.
π AUTHORS π
- Steffen Mueller β
<smueller@cpan.org> - Audrey Tang β
<cpan@audreyt.org>
π COPYRIGHT AND LICENSE π
Copyright 2006-2009 by Steffen Mueller <smueller@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE.
mwah π this was the PAR::St...RL::Base(3) page from User Contributed Perl Documentation, brought to you by perl v5.42.3 and dated 2026-11-03. bye bestie, go use a sibling class πβ¨
π¦ where this page comes from
- alpine 3.24: perl-par-packer-doc 1.064-r4 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms