fork download
  1. use strict;
  2. use warnings;
  3.  
  4. my @array = ([-1, 0, 1], [1, -1, 0], [0, 1, -1]);
  5. my ($i, $j) = (1, 1);
  6.  
  7. print "OK" if($array[$i][$j] == (-1));
Success #stdin #stdout 0s 4728KB
stdin
Standard input is empty
stdout
OK