LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   no error message from PERL when i use bash command (https://www.linuxquestions.org/questions/linux-newbie-8/no-error-message-from-perl-when-i-use-bash-command-771658/)

visva 11-26-2009 03:24 AM

no error message from PERL when i use bash command
 
hi,

I am using ubuntu 9.10 and perl5.10.1. I have a strange problem. I am trying to call a program (using bash command) from perl. for eg

`/home/nitin/software/clustalw filename`;


I knew that there is no file "clustalw" in this path. I expect perl to warn "No such file or directory" But in my case, there is no error message or warning message.


Kindly help me to solve this.

visva

kbp 11-26-2009 05:21 PM

It's up to you to grab the return code from the call and do something with it

cheers

chrism01 11-26-2009 05:47 PM

See the qx section here http://perldoc.perl.org/perlop.html#...Like-Operators for a full explanation plus example howtos.


All times are GMT -5. The time now is 09:49 PM.