Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://451606]
help
Chatterbox?
[stevieb]: Nick... can you include a comma-separated list to the operation, or a wildcard?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-07-22 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.