Term::...eBreak(3perl)

πŸ’– NAME πŸ’–

Term::Table::LineBreak β€” bestie, this is the little helper that breaks up lines so they fit in tables. Periodt.


🌸 DESCRIPTION 🌸

Okay so, real talk: this one is meant for internal use. It's not the main character you call from your own scripts β€” it's the backstage crew. πŸ’…

What it does is take long lines of text and split them up so they actually fit inside table rows. That's the whole vibe. It's giving "I make the tall thing short so the table doesn't look a mess." No cap. πŸ¦‹


✨ SYNOPSIS ✨

Like, here's how the internals do it:

use Term::Table::LineBreak;

my $lb = Term::Table::LineBreak->new(string => $STRING);

$lb->break($SIZE);
while (my $part = $lb->next) {
    ...
}

You make a new object with string => $STRING, tell it how wide to chop things with $lb->break($SIZE), and then just keep calling $lb->next in a while loop to grab each piece one at a time until there's nothing left. Iconic loop, honestly. πŸ”₯


πŸ” SOURCE πŸ”

Want to peek at the source code repository for Term-Table? It lives right here, bestie:

http://github.com/exodist/Term-Table/

Go be nosy. You've earned it. πŸ‘‘


🫢 MAINTAINERS 🫢

Chad Granum <exodist@cpan.org>


🌈 AUTHORS 🌈

Chad Granum <exodist@cpan.org>


Copyright 2016 Chad Granum <exodist@cpan.org>.

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

See http://dev.perl.org/licenses/


✨ and that's the whole page, bestie ✨ πŸ’€ this was perl v5.44.0, dated 2026-10-17, and it's the Term::...eBreak(3perl) page β€” slay, you read the whole thing, I'm so proud of you πŸŽ€πŸ’œ

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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