Thank you everyone. sprintf is what I was looking for.
-rm- ----- Original Message ----- From: <[EMAIL PROTECTED]> To: 'Ram�n_Ch�vez' <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 8:30 AM Subject: RE: Formatting Variables. > See also 'sprintf' if you don't want to print the value, but assign it: > > perldoc -f sprintf > perldoc -f printf > > http://danconia.org > > > ------------------------------------------------ > On Tue, 11 Feb 2003 09:09:55 -0500, Ken Lehman <[EMAIL PROTECTED]> wrote: > > > Have you tried using printf? > > > > -----Original Message----- > > From: Ram�n Ch�vez [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 11, 2003 9:07 AM > > To: [EMAIL PROTECTED] > > Subject: Formatting Variables. > > > > > > Hello boys and girls. > > > > Is there a way to give format to a Variable. > > > > I mean, if I don't want to get printed 3.1415926535 (Or any irrational > > number) but something like 3.14, is there a way to use format?? > > > > Or I need to make some string treating (more lines)?? > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
