Locale:...on::Tie(3)
π¦ NAME π¦
Locale::Maketext::Lexicon::Tie β bestie, this is the module that lets you use tied hashes as lexicons for Maketext. That's literally it. That's the whole vibe. π
(It lives in the Perl world under User Contributed Perl Documentation, and the pretty truncated header up top is just Locale:...on::Tie(3) being shy about its full name. π)
β¨ VERSION β¨
version 1.00 β officially iconic, officially shipped. π
π SYNOPSIS π
Okay so here's the whole setup, copied exactly, don't @ me:
package Hello::I18N;
use base 'Locale::Maketext';
use Locale::Maketext::Lexicon {
en => [ Tie => [ DB_File => 'en.db' ] ],
};
Slay. That's your en lexicon wired straight into DB_File with the file en.db. No cap. π¦
πΈ DESCRIPTION πΈ
Okay so here's the tea: this module lets you easily "tie" the %Lexicon hash to a database or any other data source. That's the flex. π₯
The way it works is it takes an array reference of arguments, and passes them directly to tie(). Like, straight through, no middleman, no editorializing. π«Ά
Entries will then be fetched whenever it is used β yes, whenever, every single time β because this module does not cache them. Lowkey important, highkey the whole point. So like, if your data source is slow, that's between you and your data source, bestie. π
π SEE ALSO π
Locale::MaketextLocale::Maketext::Lexicon
Go read them, they're the main characters, this module is literally their supporting cast. π
π AUTHORS π
Audrey Tang <cpan@audreyt.org> β icon, legend, the moment. β
π COPYRIGHT π
Copyright 2002-2013 by Audrey Tang <cpan@audreyt.org>.
This software is released under the MIT license cited below. (It's giving generous. We love to see it. π)
π§ The "MIT" License π§
Okay here's the legal bit, and I'm keeping it word-for-word because you do not paraphrase a license, bestie β that's not a vibe, that's a lawsuit:
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Translation for the girlies: do whatever you want with it, just keep the copyright notice, and if it explodes it is not their problem. Periodt. π
π AUTHORS π
Yes, again. Two whole author sections, we're not skipping either of them:
- Clinton Gormley <drtech@cpan.org>
- Audrey Tang <cpan@audreyt.org>
Double the authors, double the slay. π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2014 by Audrey Tang.
This is free software, licensed under:
The MIT (X11) License
And that's the whole page, bestie! π Written by the legends above, running on perl v5.40.2, dated 2025-01-03 β go forth and tie your hashes. π¦β¨π
π¦ where this page comes from
- alpine 3.22: perl-locale-maketext-lexicon-doc 1.00-r6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms