Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

Comment on Re^2: increment # but keep # of digits same
Download Code

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 imbibing at the Monastery: (6)
As of 2015-11-28 11:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls