Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

The Original IQ Test

by japhy (Canon)
on Oct 26, 2001 at 17:46 UTC ( #121626=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
      print map("$_->[0] to $_->[1]\n", @$hist), "\n"
        if grep($_, @$st) == 1 and $st->[$orig] == 1;
    }
    
  2. or download this
      print map("$_->[0] to $_->[1]\n", @$hist), "\n"
        if grep($_, @$st) == 8 and !$ok;