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 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