Next You can't get there from here 25

Close but no cigar

        sub halts {
          my ($source_code, $input) = @_;
          my $function = eval $source_code;
          $function->($input);
          # I guess it halted!
          return 1;
        }
        sub halts {
          my ($source_code, $input) = @_;
          1 while 1;          # Har har har
        }

Next Copyright © 2005 M. J. Dominus