Config...ubject(3pm)
π Config::Model::Role::WarpSubject π
okay bestie, sit down, hydrate, and let's talk about Config::Model::Role::WarpSubject β she's a Perl doc babe living in section 3pm of the User Contributed Perl Documentation, and she is so much cooler than her name suggests π¦
β¨ NAME β¨
Config::Model::Role::WarpSubject β common methods for a warped element π
β¨ VERSION β¨
version 2.166 β yes, that's the one, no cap π
β¨ SYNOPSIS β¨
the way you literally just do this:
package Config::Model::SomeStuff;
use Mouse;
with Config::Model::Role::WarpSubject
that's it. that's the whole vibe. π
β¨ DESCRIPTION β¨
so this role is giving warp master energy β β it lets a configuration element become a warp master, which basically means it's a parameter whose value can change the features of the configuration tree (by controlling a warped_node) or the features of various elements like leaf, hash β¦
and here's the tea π΅ β this role is needy. it requires that you provide backup and allowed_warp_params methods. no methods, no warp. periodt.
β¨ METHODS β¨
π« merge_properties
Parameters: ( %arguments_to_merge )
she returns a hash containing a first level merge of the constructor arguments (those come back to you from the backup method, mwah) and the arguments to merge.
β οΈ lowkey important: the merge happens only at the first level β hash refs are merged there, but it is not a deep merge. scalars and arrays get clobbered. straight up obliterated. gone. π
β¨ AUTHOR β¨
Dominique Dumont β the icon, the moment, the legend π
β¨ COPYRIGHT AND LICENSE β¨
This software is Copyright (c) 2005-2022 by Dominique Dumont. πΈ
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
and that's the whole page, bestie π«Ά we read it together, we understood it together, we slayed together. this one's running on perl v5.42.3, dated 2026-07-23, and it's been a pleasure fr fr π
π¦ where this page comes from
- ubuntu stonking: libconfig-model-perl 2.166-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms