This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Problem to run a perl script from shell

Hi, why the error is given though the file is here

-bash-4.2$ ls
fna_PA.ls  resfinder.pl  tmp
-bash-4.2$ perl resfinder.pl
Error: No such file or directory

How to solve the problem?

perl

What happens if you do perl ./resfinder.pl?

Is resfinder.pl in turn looking for some file that it does not find? Perhaps the error message is about that file. Add the current directory to your $PATH by doing export PATH=$PATH:/dir_you_are_in and see if the helps.

how about perl -v?

Please tell us how this is relevant to bioinformatics and not just a pure Perl/unix question.

Hello saadleeshehreen!

We believe that this post does not fit the main topic of this site.

Pure programming, not strictly bioinformatics, try Stack Overflow

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.