On Tue, 11 Feb 2003 08:06:33 -0600, Rgíón «hávkú wrote:

> Is there a way to give format to a Variable.

perldoc -f printf

> 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??

perl -e 'printf "%1.2f", 3.1415926535'


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to