ConfigFile(3pm)
π ConfigFile β Lire::Config::ConfigFile π
okay so this page is from LogReport's Lire Documentation, section 3pm, and it's literally all about the class that handles config file manipulation. bestie, let's get into it π
β¨ NAME β¨
Lire::Config::ConfigFile β the class for configuration file manipulation. that's the whole vibe. π
πΈ SYNOPSIS πΈ
use Lire::Config::ConfigFile;
π¦ DESCRIPTION π¦
It's an object representing a Lire configuration file. that's it, that's the energy β¨
π new( 'filename' => $file, spec => $config_spec )
Creates a brand-new Lire::Config::ConfigFile object. the constructor is greedy and takes two parameters, no cap:
filenameβ the file from which the configuration was stored, or was loaded from.specβ theLire::Config::TypeSpecobject that this configuration adheres to. it's giving "this is the blueprint, stay in your lane" energy π«Ά
π filename( [$new_filename] )
Returns the filename where this configuration file should be stored β and if you pass $new_filename, it optionally changes it too. multi-tasking icon π
π spec()
Returns the Lire::Config::TypeSpec object that this configuration file adheres to. yeah, the same one from the constructor. consistency is the moment. β
π global( [ $config] )
Returns β or modifies β the 'global' configuration part of the file. and heads up: this is an instance Lire::Config::Compound object. π₯
π save()
Saves this ConfigConfigFile object right back to the filename from which it was loaded. like a little boomerang, but for config π
π revert()
Reads the configuration back from the file. undo energy, but make it filesystem π
π as_value()
Returns this configuration file as a hash reference. it delegates to the global configuration object contained in the file. delegation queen, honestly π
π get( $name )
Returns the configuration parameter $name from this configuration file. delegates to the global configuration object contained in the file, as always π
π is_set( $name )
Checks that a configuration parameter is set in this file. delegates to the global configuration object contained in the file. vibe check, but for parameters β
π set( $param )
Sets a configuration variable in the file. delegates to the global configuration object contained in the file. go off, setter π
π SEE ALSO π
Lire::Config::Dictionary(3pm)β go read that one next, iykyk π§
π AUTHORS π
the icons who made this happen:
- Wessel Dankers
<wsl@logreport.org> - Francis J. Lacoste
<flacoste@logreport.org> - Wolfgang Sourdeau
<wolfgang@logreport.org>
π VERSION π
$Id: ConfigFile.pm,v 1.9 2006/07/23 13:16:30 vanbaal Exp $
π 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.
bestie, real talk: that warranty disclaimer is NOT a joke β no warranty, no promises about merchantability or fitness for a particular purpose, periodt. the whole thing rides on the GNU General Public License, so respect the license and check COPYING if you're confused π
and that's the page!! π this was Lire 2.1.1, dated 2025-09-28 β thanks for reading, mwah, go configure something iconic πβ¨π¦
π¦ 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