Horst Walther wrote:

> 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?  
> At the moment I dont see the solution, so big the door is!

my $name = sprintf '%s%02u', 'string', $counter;
print $name, "\n";
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to