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
Expr::Var(3) User Contributed Perl Documentation Expr::Var(3)

  Math::Expr::Var - Represents one variable in a parsed expression tree

  require Math::Expr::Opp;
  require Math::Expr::Var;
  require Math::Expr::Num;
  
  # To represent the expression "x+7":
  $n=new Math::Expr::Opp("+");
  $n->SetOpp(0,new Math::Expr::Var("x"));
  $n->SetOpp(1,new Math::Expr::Num(7));
  print $n->tostr . "\n";

  Used by the Math::Expr to represent variables.

  Creates a new representation of the variable named $name.

  Returns the string representation of the variable, that is the 
  variable name.

  Returns the type of the variable.

  Simply cals strtype, its needed to be compatible with the other 
  elements in the structure.

  Mathces a rule expression with the variable, and returns an array of 
  VarSet objects with this variable name set to the expression if there 
  types match.

  Used by upper level Match procedure to match an entire expression.

  Returns this variables vaule taken from $vars or a new copy of itselfe 
  if it does not excist.

Returns a new copy of itself.

  Hakan Ardo <hakan@debian.org>

  L<Math::Expr::Opp>
1998-12-19 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.