Quick Navigator

 Search Site Miscellaneous Server Agreement Year 2038 Credits

# Manual Reference Pages  -  MATH::EXPR::MATCHSET (3)

.ds Aq ’

### 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

#### CW\$s=new Math::Expr::MatchSet

```

Create a new MatchSet object.

```

#### CW\$s->Set(\$pos, CW\$match)

```

Sets the match at \$pos to \$match.

```

```

Synonyme to Set.

```

#### CW\$s->Insert(\$mset)

```

Inserts all mathes in the MatchSet Xmset intho \$s.

```

#### CW\$s->SetAll(\$var, CW\$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.

```

#### CW\$s->tostr

```

Generates a string representation of the MatchSet, used for debugging.

```

#### CW\$s->Get(\$pos)

```

Returns the Match at possition \$pos.

```

#### CW\$s->Keys

```

Returns the positions at which there excists a match.

```

### POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 107: Non-ASCII character seen before =encoding in ’Xmset’. Assuming ISO8859-1
Search for    or go to Top of page |  Section 3 |  Main Index

 perl v5.20.3 EXPR::MATCHSET (3) 1998-06-26

Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.