Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: (GOLF)Re: Leading Zeros w/ increment

by extremely (Priest)
on Apr 05, 2001 at 23:12 UTC ( [id://70232]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($a, $b, $c, $d, $e) = ("aaa", "ab000", "123", "00123", "321ba",);
    $a++;
    ...
    $d++;
    $e++;
    print "a=$a\nb=$b\nc=$c\nd=$d\ne=$e\n"
    
  2. or download this
    # now that is golfing.
    perl -e '$a="0035";until("$a">50){print++$a,$/}'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-12-07 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.