Math::Expr::VarSet - Represents a set of variables and there values
require Math::Expr::VarSet; $s=new Math::Expr::VarSet; $s->Set('a', 7); $s->Get('a');
Used to represent variables with values and substitutions.
Create a new VarSet object.
Sets $var to $val. Returns 1 if the $var was already set to $val ore did not have a value previously, otherwise 0.
Inserts all variables from $set into this object
Returns a stringrepresentation of the set, usefull for debugging.
Returns the value of $var.
To install Math::Expr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Expr
CPAN shell
perl -MCPAN -e shell install Math::Expr
For more information on module installation, please visit the detailed CPAN module installation guide.