This module extends the functionality of Math::Symbolic by offering
facilities to test a Math::Symbolic tree for existance of a specific
subtree in the Math::Symbolic tree.
As of version 0.10, this has only been implemented for operators via
the contains_operator method.
The module adds methods to all Math::Symbolic objects.
CW$ms_tree->contains_operator( [Operator type] )
This method does not modify the Math::Symbolic tree itself, but instead
tests the tree for existance of an operator of the specified operator
type. It returns undef if no such operator exists in the tree and returns
a reference to the first occurrance of the operator if there are such
Operator types are constants exported by Math::Symbolic. Please refer to the
Math::Symbolic manual for details.
If the operator type is omitted, the match will be performed for <B>anyB>
operator. That means if the tree contains any operators at all, a reference
to the top-most operator will be returned. (Which will always be the top-most
node of the tree anyway.)