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;
        }

continued...
Next Copyright © 2005 M. J. Dominus