title: How do I fix "bash: perl myscript.pl: command not found"?
body: <p>Maybe it's dumbest question in the world, but I seriously have problems with it and could use help. I am trying to run perl script on linux. It's a simple text editing script, nothing fancy. I googled for it and I found that I had to <code>chmod +x</code> it and then just run <code>myscript.pl</code> in the console. Since it's supposed to modify a text file I did <code>myscript.pl &gt; myfile.txt</code> after chmoding it</p>
  
  <p>But it doesn't work. I get: <code>bash: perl myscript.pl: command not found</code></p>