Alien:...igData(3pm)

πŸ“¦ version 1.4.7, in opensuse-leap 16.0

πŸ’– 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