TERM::TABLE::UTIL(3perl)

πŸ’– Term::Table::Util β€” the little helper module for Term::Table

okay bestie, so this whole page is about Term::Table::Util πŸ’… which lives in the 3perl section of the manual.


✨ NAME ✨

Term::Table::Util β€” Utilities for Term::Table.

like, that's literally the whole point of it. it's the toolbox. 🧰✨


🌸 DESCRIPTION 🌸

This package exports some tools used by Term::Table.

that's it. that's the description. it's giving "supporting role" but honestly every main character needs a bestie who handles the logistics, so. 🫢


πŸŽ€ EXPORTS πŸŽ€

πŸ’œ CONSTANTS

  • $bool = USE_GCS β€” True if Unicode::GCString is installed. iykyk. if this is true then the unicode stuff actually works works. 🌈
  • $bool = USE_TERM_READKEY β€” True if Term::ReadKey is installed. same vibe, different dependency. πŸ”‘

πŸ¦‹ UTILITIES

  • $width = term_size() β€” Get the width of the terminal. πŸ‘‘

If the $TABLE_TERM_SIZE environment variable is set then that value will be returned. yes, it just trusts you. periodt. πŸ’…

This will default to 80 if there is no good way to get the size, or if the size is unreasonably small. so like, no 0-width chaos, no weird tiny terminal situations, we're just gonna go with a nice sensible 80. πŸŽ€

If Term::ReadKey is installed it will be used. no Term::ReadKey? we cope. πŸ’€

  • $width = uni_length($string) β€” Get the width (in columns) of the specified string. When Unicode::GCString is installed this will work on unicode strings, otherwise it will just use length($string).

so like, with the fancy module you get actual column width for emoji and combining characters and all that gorgeous chaos ✨, and without it you get plain old length($string), which is lowkey not the same thing but it's what we have. πŸ™ˆ not the module's fault, it's a dependency thing.


🌈 SOURCE 🌈

The source code repository for Term-Table can be found at http://github.com/exodist/Term-Table/.

go read the source bestie, it's right there 🫢


πŸ‘‘ 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 thing, babe πŸŽ€ this was perl v5.44.0, dated 2026-10-17, from the Term::Table::Util page in the Perl Programmers Reference Guide β€” slay, bye bestie πŸ’…βœ¨

πŸ“¦ 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