fork download
  1. $x = <STDIN>;
  2. $y = index ($x , "d" , 5);
  3.  
  4. if ($y != -1)
  5. {
  6. print $y;
  7. }
  8. else
  9. {
  10. print "the letter is not found";
  11. }
Success #stdin #stdout 0s 18256KB
stdin
ahmedomar
stdout
the letter is not found