[EMAIL PROTECTED] 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?
use sprintf and a leading zero(as in sprintf "%09s", $myvar) would
print 000000001 if $myvar = 1
Wags ;)
Wags
> At the moment I dont see the solution, so big the door is!
>
> Please help me!
>
>
> Horst
>
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
**********************************************************************
This message contains information that is confidential and proprietary to FedEx
Freight or its affiliates. It is intended only for the recipient named and for
the express purpose(s) described therein. Any other use is prohibited.
**********************************************************************
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs