Config...nction(3pm)

πŸ’– Config::Model::Role::ComputeFunction πŸ’–

okay bestie so this is a Perl thing, a role (that's like a lil mixin, iykyk) β€” it's Config::Model::Role::ComputeFunction and honestly? it's giving "compute &index or &element functions". πŸŽ€

it's version 2.166 btw, slay.


✨ SYNOPSIS ✨

$value->eval_function('index');
$value->eval_function('element');

$value->eval_function('index','-');
$value->eval_function('index','- -');
$value->eval_function('index','-3');

$value->compute_string('&element(-)')
$value->compute_string('&index(- -)');

like, look at her go. πŸ’…


🌸 DESCRIPTION 🌸

so basically this role exists so a value object can go get the index or the element name of $self… or of a node above it (going up, like climbing the family tree, no cap). πŸ¦‹


πŸ‘‘ METHODS πŸ‘‘

⭐ eval_function

bestie this one goes and retrieves the index or the element name for you. the params are:

( function_name , [ up  ])
  • function_name β€” literally just "element" or "index". pick your fighter. 🌈
  • up β€” optional! it tells you how many levels to go up before grabbing that index or element name. each "-" is equivalent to a call to "parent|Config::Model::Node/parent". you can do repeated dashes (like "-", "- -", …) or one dash with a multiplier (like "-", "-2", …). white spaces? ignored, she doesn't even see them. πŸ’€

🧚 compute_string

this one does a similar thing to "eval_function" except it works off a string, and the function names get extracted from inside it. iconic honestly.

E.g. "compute_string('&element(-)')" calls "eval_function('element','-')" 🫢


πŸ’œ AUTHOR πŸ’œ

Dominique Dumont β€” the main character, we stan. πŸ‘‘


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

legally iconic. periodt. πŸ’…


fr fr that's the whole thing β€” go forth and compute those functions bestie πŸ’–βœ¨

this whole page came to you courtesy of perl v5.42.3 on 2026-07-23, and yes the manual name is Config...nction(3pm) in case you forgot (the terminal truncates it, not me πŸ™ˆ) πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from