Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Friday Golf: All 2-digit combinations

by LTjake (Prior)
on Sep 26, 2003 at 13:31 UTC ( #294412=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for('00'..'99'){$a.=$_ unless $x{$_} or $x{reverse $_}++};print $a;
    #234567890#234567890#234567890#234567890#234567890#234567890#234567
    #        1         2         3         4         5         6       
    
  2. or download this
    for('00'..'99'){$x{$_}++unless $x{reverse()}};print keys%x;
    
  3. or download this
    for$a(0..9){for(0..9){$x.="$a$_"if$_>=$a}}print$x;
    
  4. or download this
    $_=9;for$a(0..9){for$b($a..9){$_.="$a$b"}s/$a{3}/$a$a/}print
    
  5. or download this
    $_=9;for$a(0..9){for$b($a..9){$_.="$a$b"}s/$a$a/$a/}print
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-11-26 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (174 votes), past polls