On Sun, 2009-01-11 at 13:41 -0500, ANJAN PURKAYASTHA wrote: > hi, > i have file of numbers in the format x.xxxxe+003, eg 2.133793e+001. > these numbers are not recognized by the perl multiplication operator > "*". > any idea of how i may convert these numbers to a format the operator > DOES > recognize? > thanks, > anjan
Adding zero to a string converts it to a number. perl -e 'print 0+"2.133793e+001", "\n";' -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. "It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years." --John von Neumann, circa 1950 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/