Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Expr::MatchSet(3)     User Contributed Perl Documentation    Expr::MatchSet(3)

NAME
	 Math::Expr::MatchSet -	Represents matches in algebraic	expretions

SYNOPSIS
	 require Math::Expr::MatchSet;
	 $s=new	Math::Expr::MatchSet;
	 $s->Set($pos,$match);
	 $s->Get($pos);

DESCRIPTION
	 Two expretion can be matched in several ways, therefor	we need	to be
	 able to represent a set of matches keyed by the matchposition (the
	 subexpretion, where the match where found).

METHODS
   $s=new Math::Expr::MatchSet
	 Create	a new MatchSet object.

   $s->Set($pos, $match)
	 Sets the match	at $pos	to $match.

   $s->Add($pos, $match)
	 Synonyme to Set.

   $s->Insert($mset)
	 Inserts all mathes in the MatchSet ALmset intho $s.

   $s->SetAll($var, $obj)
	 Sets the variable $var	to $obj	in all mathces in this set, and	removes
	 all matches that already had a	diffrent value for the variable	$var.

   $s->tostr
	 Generates a string representation of the MatchSet, used for debugging.

   $s->Get($pos)
	 Returns the Match at possition	$pos.

   $s->Keys
	 Returns the positions at which	there excists a	match.

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 107:
	   Non-ASCII character seen before =encoding in	'ALmset'. Assuming
	   CP1252

perl v5.32.1			  1998-06-26		     Expr::MatchSet(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Math::Expr::MatchSet&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help