Data::...OneLine(3pm)
π Data::Dump::OneLine β the manual, but make it a group chat π
okay bestie, so this is Data::Dump::OneLine (yes, the page header calls it Data::...OneLine because man pages truncate things and it's giving β¨dramaticβ¨). It's a Perl module. Sit with me, this one's short and honestly kind of a plot twist. π
β¨ VERSION β¨
This doc is describing version 0.080 of Data::Dump::OneLine, which ships in the Perl distribution Data-Dump-OneLine and dropped on 2021-06-27. ποΈπ
πΈ SYNOPSIS πΈ
Like, here's the whole vibe in two lines:
use Data::Dump::OneLine; # exports dd and dmp
$str = dd(@list);
That's it. That's the whole thing. It exports dd and dmp, and you call dd with a list and get back a string. Slay. π
π¦ DESCRIPTION π¦
okay so here's the tea, and it's a little bittersweet: it now uses Data::Dmp. Which means... you should use Data::Dmp directly, bestie. Like, just go to the source. No cap. π
not me being a whole wrapper module π
π«Ά CONTRIBUTOR π«Ά
Shoutout to Steven Haryanto <sharyanto@cpan.org> for contributing. Iconic behavior, honestly. π
π HOMEPAGE π
Wanna go touch grass at the project's homepage? It lives at <https://metacpan.org/release/Data-Dump-OneLine>. Go say hi. π¦
β SOURCE β
The source repo is at <https://github.com/perlancar/perl-Data-Dump-OneLine>. That's where the code actually hangs out. π₯
π BUGS π
Found a bug or want a feature? Report it on the bugtracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Dump-OneLine>. Please and thank you, bestie. π
And listen β when you submit that bug or feature request, please include a test-file, or a patch to an existing test-file, that shows off the bug or the thing you want. It's giving "here's receipts, not vibes" and it helps soooo much. π§
π SEE ALSO π
JSONshould also encode to a single-line string, but some data structures (cyclical, contains globs or other special Perl data) cannot be encoded out of the box to JSON. Like, it simply cannot, and that's not JSON's fault, that's just Perl being Perl. πData::Dumper::OneLinestrives to do the same thing forData::Dumper, but last time I tried it (atv0.05) it's still buggy. So... yeah. It's giving "almost". π
π AUTHOR π
perlancar <perlancar@cpan.org> β the main character, the author, the moment. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2021, 2015, 2014, 2013, 2010 by perlancar@cpan.org. β¨
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So go forth, remix, redistribute β just keep it free, periodt. π«Ά
and that's the whole page, bestie!! this doc came from perl v5.36.0 and was dated 2022-12-07 (yes, the footer says Data::...OneLine(3pm) again β the man page equivalent of putting your own name in your bio π
). byeeee, go use Data::Dmp ππβ
π¦ where this page comes from
- debian bookworm: libdata-dump-oneline-perl 0.080-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdata-dump-oneline-perl 0.080-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdata-dump-oneline-perl 0.080-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdata-dump-oneline-perl 0.080-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-dump-oneline-perl 0.080-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms