On Mar 12, 2004, at 1:39 PM, Meneses, Alden wrote:

Suppose I have machines that are ACMExxxx

I want to go from ACME0001 to ACME9999

How's this?


foreach (1..9999) {
        printf "ACME%4d\n", $_;
}

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to