Otherwise you will need to parse and evaluate it yourself. Math::Fraction looks like it should be able to parse that.
If it was for personal use I'd do an eval. If I somewhat trusted my users I'd do a simple sanity check then eval. Otherwise I'd parse it in Perl.
In reply to Re: how to convert fractional string to decimal numbers ?
by tilly
in thread how to convert fractional string to decimal numbers ?
by adrive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |