fork download
  1. $DNA = <STDIN>;
  2. $position = index[$DNA;"AA";3];
  3. if ($position = -1);
  4. {
  5. print "NOT FOUND.";
  6. }
  7. else
  8. {
  9. print "FOUND";
  10. }
Runtime error #stdin #stdout #stderr 0s 17496KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
syntax error at prog.pl line 2, near "$DNA;"
syntax error at prog.pl line 2, near "3]"
syntax error at prog.pl line 3, near ");"
syntax error at prog.pl line 7, near "else"
Execution of prog.pl aborted due to compilation errors.