Alien:...igData(3pm)
π NAME π
Alien::Tidyp::ConfigData β it's literally the configuration holder for Alien::Tidyp, no cap β¨
okay so before we even start: this page comes from the User Contributed Perl Documentation section, bestie β that's the manual name, we're in Perl territory now πͺπ
β¨ SYNOPSIS β¨
like, here's the whole vibe of how you'd actually use it:
use Alien::Tidyp::ConfigData;
$value = Alien::Tidyp::ConfigData->config('foo');
$value = Alien::Tidyp::ConfigData->feature('bar');
@names = Alien::Tidyp::ConfigData->config_names;
@names = Alien::Tidyp::ConfigData->feature_names;
Alien::Tidyp::ConfigData->set_config(foo => $new_value);
Alien::Tidyp::ConfigData->set_feature(bar => $new_value);
Alien::Tidyp::ConfigData->write; # Save changes
that last line is your save button, don't forget it π
π¦ DESCRIPTION π¦
So Alien::Tidyp::ConfigData is the module that holds all the config data for the Alien::Tidyp module β like it's the lil vault π¦β¨ It also gives you a programmatic interface for getting or setting that config data, which is lowkey iconic.
β οΈ but bestie hear me β to actually make changes, you have to have write access to the Alien::Tidyp::ConfigData module. and you should genuinely attempt to understand the repercussions of your actions before you go editing stuff π like, know what you're doing, fr fr.
π METHODS π
config($name)
Hand it a string and it gives you back the value of the configuration item with that name π« If no such item exists? You get undef. That's it, that's the whole deal.
feature($name)
Same energy, different closet: give it a string, it returns the value of the feature with that name πΈ No such feature? undef, bestie, sorry π
set_config($name, $value)
Sets the configuration item with the given name to the given value. And the value can be any Perl scalar that'll serialize correctly using Data::Dumper β which means references, objects (usually), and complex data structures all get to come to the party ππ
π«Ά but it probably does not include transient stuff like filehandles or sockets. those are not invited, ngl.
set_feature($name, $value)
Sets the feature with the given name to the given boolean value β the value gets converted to 0 or 1 automatically. so clean, so simple, slay β¨
config_names()
Returns a list of all the names of config items currently defined in Alien::Tidyp::ConfigData β or, in scalar context, the number of items. two modes, one icon π
feature_names()
Same but for features: returns a list of all the names of features currently defined in Alien::Tidyp::ConfigData β or, in scalar context, the number of features π₯
auto_feature_names()
Returns a list of all the names of features whose availability is dynamically determined β or, in scalar context, the number of such features π
π small caveat: it does not include such features that have later been set to a fixed value. respect the boundary.
write()
Commits any changes from set_config() and set_feature() to disk πΎβ¨ Requires write access to the Alien::Tidyp::ConfigData module. no write access, no saving, periodt.
π AUTHOR π
Alien::Tidyp::ConfigData was automatically created using Module::Build π€ Module::Build was written by Ken Williams, but he holds no authorship claim or copyright claim to the contents of Alien::Tidyp::ConfigData. so like, he made the machine, not this particular smoothie π
and that's the page, bestie π«Άπ it's giving perl v5.42.0, dated 2015-02-03, and yes the page header up top really is Alien:...igData(3pm) β we don't know her full name either, we just vibe with it ππ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Alien-Tidyp 1.4.7-160000.2.2 Β· Artistic-1.0 or GPL-2.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms