Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^2: increment # but keep # of digits same

by Hero Zzyzzx (Curate)
on Apr 26, 2005 at 14:51 UTC ( #451606=note: print w/replies, xml ) Need Help??

in reply to Re: increment # but keep # of digits same
in thread increment # but keep # of digits same

That could simply be:

#!/usr/bin/perl foreach("00001".."00021"){ print "$_\n"; }

Edit: Just showing that the increment operator is a bit magical, but now I see I've probably missed the point a bit.

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

My Biz

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://451606]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-10-23 14:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.