http://www.perlmonks.org?node_id=1012075


in reply to system command with arguments Error

It appears that you are not in the folder that you think you are when the system() is executed. Please post a small, self-contained example of the code you are using. and we can go from there.

----
I Go Back to Sleep, Now.

OGB

Replies are listed 'Best First'.
Re^2: system command with arguments Error
by ansh batra (Friar) on Jan 07, 2013 at 18:22 UTC

    they are in the same directory. i have checked it .
    and my code is running fine but when it reaches system("perl .......")==0 or die "cant run!!";
    it outputs cant run!!

      There's a less-baudlerized version of this statement:
      You can't just make stuff up and expect Perl to understand.