Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-11-24 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (348 votes). Check out past polls.

    Notices?