in reply to Re: Opening not-existing command - Error Handling
in thread Opening not-existing command - Error Handling

Thanks. Problem is that even if I take the not-existing command "dira" I'm not going into the else block. I verified it with the debugger.

Do you enter the else block on your machine if you choose a not-existing command?

  • Comment on Re^2: Opening not-existing command - Error Handling

Replies are listed 'Best First'.
Re^3: Opening not-existing command - Error Handling
by Anonymous Monk on Aug 17, 2011 at 13:11 UTC

    On GNU/Linux (line 12 is test in "if"; second message was generated in "else" body) & perl 5.8.8 ...

    Can't exec "dira": No such file or directory at p.pl line 12. Problem executing command dira - No such file or directory at p.pl lin +e 18.
    ...