Palm::Raw(3pm)

πŸ“¦
version 1.400 Β· 5 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Palm::Raw β€” the handler for "raw" Palm databases πŸ’Ύβœ¨

(It's a Perl 3pm page, from the ✨ User Contributed Perl Documentation ✨ collection, if you were wondering where you wandered into.)


🌸 VERSION 🌸

This doc describes version 1.400 of Palm::Raw, which came out on March 7, 2015, as part of Palm-PDB version 1.400. Yes bestie, 2015, it's vintage, it's giving retro-tech, we love her πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

use Palm::Raw;

Okay so that one's for standalone programs.

use Palm::Raw();
@ISA = qw( Palm::Raw );

And that one's for Palm::PDB helper modules 🫢


πŸŽ€ DESCRIPTION πŸŽ€

The Raw PDB handler is a little helper class for the Palm::PDB package. Its whole thing is being a generic handler for any database, or a fallback default handler when nothing else fits. No thoughts, head empty, handles everything 🌈

If you've got a standalone program and you want it to be able to parse literally any type of database, you go:

use Palm::Raw;

If you're using Palm::Raw as a parent class for your own database handler, you go:

use Palm::Raw();
⚠️ Okay bestie, listen: if you omit the parentheses, Palm::Raw will register itself as the default handler for all databases, which is probably not what you want. Don't do it. Just don't. πŸ™ˆ

The Raw handler does no processing on the database whatsoever. Like, none. Zero. The AppInfo block, sort block, records and resources are all just strings β€” raw data straight from the database. Iconic minimalism, honestly ✨

By default, the Raw handler only handles record databases (.pdb files). If you want it to handle resource databases (.prc files) as well, you need to call this in your script:

&Palm::PDB::RegisterPRCHandlers("Palm::Raw", "");

🌟 AppInfo block

$pdb->{appinfo}

This is a scalar β€” the raw data of the AppInfo block. That's it, that's the whole vibe πŸ’œ

🌟 Sort block

$pdb->{sort}

This is a scalar β€” the raw data of the sort block πŸŽ€

🌟 Records

@{$pdb->{records}Z<>};

Each element in the records array is a reference-to-hash. On top of the standard keys (attributes, category, and id), this hash has a key called data, and its value is a string holding the raw record data. Slay πŸ’…

🌟 Resources

@{$pdb->{resources}Z<>};

Each element in the resources array is a reference-to-hash. On top of the standard keys (type and id), it has a key called data, and its value is a string holding the raw resource data ✨


πŸ’– SEE ALSO πŸ’–

  • Palm::PDB

That's the one. Go read her πŸ‘‘


🧚 CONFIGURATION AND ENVIRONMENT 🧚

Palm::Raw requires no configuration files and no environment variables. Low maintenance queen, she asks nothing of you 🫢


πŸ’€ INCOMPATIBILITIES πŸ’€

None reported. No drama, no beef, nothing πŸ’œ


πŸ“ BUGS AND LIMITATIONS πŸ“

No bugs have been reported. She's just out here living her best life, unbothered πŸ’…βœ¨


πŸ‘‘ AUTHORS πŸ‘‘

Andrew Arensburger <arensb AT ooblick.com> β€” the original icon πŸŽ€

Currently maintained by Christopher J. Madsen <perl AT cjmweb.net> β€” keeping the legacy alive, we stan 🫢

Please report any bugs or feature requests to <bug-Palm-PDB AT rt.cpan.org> or through the web interface at <http://rt.cpan.org/Public/Bug/Report.html?Queue=Palm-PDB>.

You can follow or contribute to Palm-PDB's development at <https://github.com/madsen/Palm-PDB>. Go, contribute, be the main character πŸ”₯


This software is copyright (c) 2000 by Andrew Arensburger.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Periodt πŸ’–


⭐ DISCLAIMER OF WARRANTY ⭐

Okay bestie, this part is ALL CAPS FOR A REASON, so read it fr fr β€” it's the legal stuff and it means exactly what it says:

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Translation: no capes, no refunds, no guarantees β€” use it, love it, and if it explodes, that's on you πŸ˜­πŸ’€


That's the whole page, babe. This one's running on perl v5.38.2, and the page itself is dated 2024-03-07. Stay hydrated, back up your .pdb files, and go parse something raw πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from