Dictionary(3pm)
π Dictionary(3pm) β Lire::Config::Dictionary, aka the Dictionary Value object π
okay so real talk, this is a page from LogReport's Lire Documentation and it's genuinely a lil hidden gem, so let's get into it bestie β¨
πΈ SYNOPSIS πΈ
use Lire::Config::Dictionary;
that's it. that's the whole vibe check. you just use it and you're in π
β¨ DESCRIPTION β¨
okay so picture this: a configuration parameter that literally contains a whole bunch of named parameters, like, other values that you can grab by name. it's giving little dictionary energy π
it's the value type you use for top-level configuration sets β yes, the main character of config values π
π¦ is_set( $name ) π¦
is_set( $name )
returns true if the parameter $name was set in this dictionary. simple as that, no cap. this is your "does this key even exist" check β
π§ get( $name ) π§
get( $name )
returns the Value object for the $name subparameter π
β οΈ heads up bestie β an exception will be thrown if there's no subparameter named$name. so like, check withis_setfirst unless you enjoy chaos π
π set( $value ) π
set( $value )
sets a parameter in this dictionary. that's the whole thing. go off π β¨
π AUTHORS π
the icons who made this happen, periodt:
Wessel Dankers <wsl@logreport.org>Wolfgang Sourdeau <wolfgang@logreport.org>Francis J. Lacoste <flacoste@logrpeort.org>
β VERSION β
$Id: Dictionary.pm,v 1.19 2006/07/23 13:16:30 vanbaal Exp $
yes the version string is a whole CVS relic, we love a vintage moment π°οΈ
π COPYRIGHT π
Copyright (C) 2002-2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
and that's the whole page bestie π«Ά shoutout to Lire 2.1.1, dated 2025-09-28 β this Dictionary(3pm) page said "I'm iconic and I know it" and honestly? she's right πππ¦
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms