use String::Fraction;
print String::Fraction->tweak( <<ENDOFTEXT );
When this is run through tweak things like 1/4 and 0.25 and 6.33
will be converted to unicode chars that represent the fractional parts
ENDOFTEXT