Data::...OneLine(3pm)

πŸ“¦
version 0.080 Β· 2 versions
  • 0.080 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.080 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ‘‘

  • JSON should 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::OneLine strives to do the same thing for Data::Dumper, but last time I tried it (at v0.05) it's still buggy. So... yeah. It's giving "almost". 😭

πŸ’œ AUTHOR πŸ’œ

perlancar <perlancar@cpan.org> β€” the main character, the author, the moment. πŸŽ€


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