----- Original Message -----
From: "Horst Walther" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 12, 2006 7:03 PM
Subject: formatted output to a variable
Hi, dear colleagues.
In a script I wish to build a name (string), which consists also an
countervalue, derived from a loop counter.
For the small values (0 to 9) shall the string consist the leading zero
(00
.... 09).
Whats to do?
$mystring = 'some_text' . sprintf("%02d", $counter);
Petr Vileta, Czech republic
(My server reject all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs