in reply to formatting text with E-XX

I think you want sprintf "%1.2E" which will force scientific notation.

From perldoc -f sprintf:

%e a floating-point number, in scientific notation %f a floating-point number, in fixed decimal notation %g a floating-point number, in %e or %f notation ... %E like %e, but using an upper-case "E"
Hope this helps

--
I'm Not Just Another Perl Hacker