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 ifUnicode::GCStringis installed. iykyk. if this is true then the unicode stuff actually works works. π$bool = USE_TERM_READKEYβ True ifTerm::ReadKeyis 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. WhenUnicode::GCStringis installed this will work on unicode strings, otherwise it will just uselength($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 π
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