Locale:...onstants(3)

πŸ“¦
version 4.002 Β· 2 versions
, in fedora 43

πŸ’– Locale::TextDomain::OO::Util::Constants πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation section 3 glow-up of Locale::TextDomain::OO::Util::Constants ✨ it's a Perl module, it's a whole vibe, and yes it's literally just here to hand you some lexicon constants πŸŽ€


🌸 NAME 🌸

Locale::TextDomain::OO::Util::Constants β€” Lexicon constants. that's it. that's the whole job description, and she does it flawlessly πŸ’…


πŸ¦‹ VERSION πŸ¦‹

4.001 babes, we're on 4.001 🫢

$Id: Constants.pm 715 2018-06-04 15:08:31Z steffenw $

and the source URL, in all its glory:

$HeadURL:
svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/Locale-TextDomain-OO-Util/trunk/lib/Locale/TextDomain/OO/Util/Constants.pm
$

✨ SYNOPSIS ✨

here's the move, no notes:

use Locale::TextDomain::OO::Util::Constants;

my $const = Locale::TextDomain::OO::Util::Constants->instance;

like. that's it. you pull the instance and you're in business πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

This module provides lexicon constants. lexicon constants!! that's the entire description and honestly? icon behavior. it knows what it is πŸ’–


πŸŽ€ SUBROUTINES/METHODS πŸŽ€

method instance

see SYNOPSIS bestie, it's up there, go look πŸ‘€

method lexicon_key_separator

$separator = $const->lexicon_key_separator;

gives you the separator, slays, moves on πŸ’…

method msg_key_separator

$separator = $const->msg_key_separator; # Perl
$separator = $const->msg_key_separator('JSON');

default? Perl energy. pass 'JSON' and she switches it up, versatile queen 🌈

method plural_separator

$separator = $const->plural_separator; # Perl
$separator = $const->plural_separator('JSON');

same deal, same duality β€” no arg means Perl, 'JSON' means JSON, and both are correct 😌


🌸 EXAMPLE 🌸

Inside of this distribution is a directory named example. Run this *.pl files. πŸƒβ€β™€οΈπŸ’¨

(yes it says "this *.pl files", we're keeping it, it's part of the lore, no cap)

πŸ’€ DIAGNOSTICS πŸ’€

none. zero. nothing. she doesn't do drama πŸ™ˆ


🌈 CONFIGURATION AND ENVIRONMENT 🌈

none. no env vars, no config files, no setup ritual, we love a low-maintenance icon ✨


🧚 DEPENDENCIES 🧚

  • charnames
  • namespace::autoclean

two little besties carrying the whole thing, periodt 🫢


πŸ’… INCOMPATIBILITIES πŸ’…

not known. she plays nice with everyone πŸŽ€


πŸ“ BUGS AND LIMITATIONS πŸ“

none. flawless. we said what we said πŸ’œ


⭐ SEE ALSO ⭐

Locale::TextDoamin::OO

yes bestie, that's spelled TextDoamin in the original and we are NOT fixing it, it's a historical artifact, iykyk 😭

πŸ‘‘ AUTHOR πŸ‘‘

Steffen Winkler β€” thank you for your service, legend πŸ«‘πŸ’–


Copyright (c) 2014 - 2018, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸŽ‰


and that's the whole page bestie!! this beauty was documented by perl v5.42.0 on 2025-07-25, so go forth and separate your lexicon keys in peace πŸ’–βœ¨πŸ¦‹πŸŽ€πŸ’…

πŸ“¦ where this page comes from