Help for this page
## Perform test and call fraction only if test is true if ($str =~ /\d+_\d+) { ... # convert $str to fraction using mimetex syntax return $str; }
# Call fraction and perform the conditional test there $str = fraction($str); ... } return $str; }