Data::...p::XXD(3pm)

๐Ÿ“ฆ
version 0.1.1 ยท 2 versions
, in fedora 43

๐Ÿ’– Data::...p::XXD ๐Ÿ’–

okay so first of all bestie, yes, the manual name is literally Data::...p::XXD with the dots and everything, it's the 3pm section of the manual, and the docs are User Contributed Perl Documentation. Iconic. Truncated. We love her. ๐Ÿ’…


โœจ NAME โœจ

Data::HexDump::XXD โ€” formats a hexadecimal dump the way xxd does it. That's the whole job. She does it well. ๐Ÿฆ‹


๐ŸŒธ VERSION ๐ŸŒธ

This document describes Data::HexDump::XXD version 0.0.1. โœจ


๐Ÿ’œ SYNOPSIS ๐Ÿ’œ

   use Data::HexDump::XXD qw( xxd xxd_r );

   my $dump_string = xxd($binary_data);
   my @dumped_lines = xxd($binary_data);

   my $binary = xxd_r($xxd_like_string);
   my $binary = xxd_r(@xxd_like_lines);

that's it. that's the whole vibe. ๐ŸŽ€


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

she produces a hexadecimal dump exactly like the program xxd would do, and she does the reverse too. both directions, no cap. ๐Ÿ”ฅ

at the moment, only straight dumping is supported, and reverse assumes the same. so like, don't come at her with the fancy xxd options, she's doing the basic thing and she's doing it slay. ๐Ÿ’…

๐ŸŒˆ INTERFACE ๐ŸŒˆ

my $dump = xxd($bindata);

my @dump_lines = xxd($bindata);

my $dump = xxd_unpack($bindata);

my @dump_lines = xxd_unpack($bindata);

produces a hex dump of the input $bindata, bestie. the dump comes back either as a single string or as a list of lines โ€” it literally depends on the calling context, so my $dump = ... gives you the string, my @dump_lines = ... gives you the lines. same function, different glow-up depending on what you asked for. โœจ

xxd_unpack() and xxd() are synonimous. (that's the doc's spelling, keep it, iykyk ๐Ÿซถ)

my $bindata = xxd_r($dump);

my $bindata = xxd_r(@dump_lines);

my $bindata = xxd_pack($dump);

my $bindata = xxd_pack(@dump_lines);

reverses an xxd-style hexadecimal dump back into binary. ๐Ÿงš you can hand her either a single string or an array of lines โ€” and if you give her the single string, the line terminator is assumed to be a single newline character, that's the default, no negotiating.

and like xxd itself does, the ASCII dump is ignored and only the hexadecimal part is taken into account. she's not reading the right-hand side, she's not judging it, she's just grabbing the hex. ๐Ÿ’–


๐ŸŽ€ CONFIGURATION AND ENVIRONMENT ๐ŸŽ€

Data::HexDump::XXD requires no configuration files and no environment variables. zero setup. she just works. main character energy fr fr. ๐Ÿ‘‘


โญ DEPENDENCIES โญ

among the non-core stuff, only version. that's the entire guest list. ๐Ÿ™ˆ


๐Ÿ’€ BUGS AND LIMITATIONS ๐Ÿ’€

she's currently limited to the basic behaviour of xxd. that's the boundary, bestie, respect the boundary. ๐ŸŒธ

note that a plain hex dump is pretty straightforward in Perl, you literally just have to call:

   my $hex = unpack 'H*', $bindata;

note also that the high nybble is always assumed to come first in dumps (see perldoc -f unpack, the H template). so that's a real assumption, not a suggestion. ๐Ÿซถ

no bugs have been reported. ๐Ÿ˜Œ

please report any bugs or feature requests through http://rt.cpan.org/ โ€” go through the proper channels, she reads them, she's not ignoring you. ๐Ÿ’œ


๐ŸŒŸ AUTHOR ๐ŸŒŸ

Flavio Poletti "<flavio [at] polettix [dot] it>" ๐Ÿ’–


Copyright (c) 2007, Flavio Poletti "<flavio [at] polettix [dot] it>". All rights reserved. โœจ

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic and perlgpl.

Questo modulo รจ software libero: potete ridistribuirlo e/o modificarlo negli stessi termini di Perl stesso. Vedete anche perlartistic e perlgpl. ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ’…


๐Ÿ”ฅ DISCLAIMER OF WARRANTY ๐Ÿ”ฅ

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 LICENCE, 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. ๐Ÿ’€


๐Ÿ’œ NEGAZIONE DELLA GARANZIA ๐Ÿ’œ

Poichรฉ questo software viene dato con una licenza gratuita, non c'รจ alcuna garanzia associata ad esso, ai fini e per quanto permesso dalle leggi applicabili. A meno di quanto possa essere specificato altrove, il proprietario e detentore del copyright fornisce questo software "cosรฌ com'รจ" senza garanzia di alcun tipo, sia essa espressa o implicita, includendo fra l'altro (senza perรฒ limitarsi a questo) eventuali garanzie implicite di commerciabilitร  e adeguatezza per uno scopo particolare. L'intero rischio riguardo alla qualitร  ed alle prestazioni di questo software rimane a voi. Se il software dovesse dimostrarsi difettoso, vi assumete tutte le responsabilitร  ed i costi per tutti i necessari servizi, riparazioni o correzioni. ๐Ÿ˜ญ

In nessun caso, a meno che ciรฒ non sia richiesto dalle leggi vigenti o sia regolato da un accordo scritto, alcuno dei detentori del diritto di copyright, o qualunque altra parte che possa modificare, o redistribuire questo software cosรฌ come consentito dalla licenza di cui sopra, potrร  essere considerato responsabile nei vostri confronti per danni, ivi inclusi danni generali, speciali, incidentali o conseguenziali, derivanti dall'utilizzo o dall'incapacitร  di utilizzo di questo software. Ciรฒ include, a puro titolo di esempio e senza limitarsi ad essi, la perdita di dati, l'alterazione involontaria o indesiderata di dati, le perdite sostenute da voi o da terze parti o un fallimento del software ad operare con un qualsivoglia altro software. Tale negazione di garanzia rimane in essere anche se i dententori del copyright, o qualsiasi altra parte, รจ stata avvisata della possibilitร  di tali danneggiamenti. ๐Ÿ’€

Se decidete di utilizzare questo software, lo fate a vostro rischio e pericolo. Se pensate che i termini di questa negazione di garanzia non si confacciano alle vostre esigenze, o al vostro modo di considerare un software, o ancora al modo in cui avete sempre trattato software di terze parti, non usatelo. Se lo usate, accettate espressamente questa negazione di garanzia e la piena responsabilitร  per qualsiasi tipo di danno, di qualsiasi natura, possa derivarne. ๐Ÿ™ˆ


okay that's the whole page bestie, no notes, she ate. ๐Ÿ’…โœจ

perl v5.42.0 ยท 2025-07-25 ยท Data::...p::XXD(3pm) ๐ŸŽ€๐Ÿฆ‹๐Ÿ’–

๐Ÿ“ฆ where this page comes from