Ryan Frantz wrote: > Perlers, > > > > Is there are way to format a variable before placing it into an array or > hash? I have several variables that contain floating point numbers that > I format prior to printing out: > > > > my $float = "12.3456"; > > print "%2.1f\n", $float; >
perldoc -f sprintf http://danconia.org > > > I'd like to place these scalars into an array for later use/output in an > HTML table and I figured I have to format them before they are entered > in the array. Is this possible? Or is there a different/better > solution? > > > > ry > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>