GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Config::Model::Role::ComputeFunction(3) User Contributed Perl Documentation Config::Model::Role::ComputeFunction(3)

Config::Model::Role::ComputeFunction - compute &index or &element functions

version 2.149

 $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(- -)');

Role used to let a value object get the index or the element name of $self or of a node above.

Retrieve the index or the element name. Parameters are

 ( function_name , [ up  ])
function_name
"element" or "index"
up
Optional parameter to indicate how many level to go up before retrieving the index or element name. Each "-" is equivalent to a call to "parent|Config::Model::Node/parent". Can be repeated dashes (""-"", ""- -"", ...) or a dash with a multiplier (""-"", ""-2"", ...). White spaces are ignored.

Perform a similar function as "eval_function" using a string where function names are extracted.

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

Dominique Dumont

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
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.