Of course my goal would it be that the open command dies the program because the command "dira" does not exist.
Your program did exactly that. You told it to die with $!, which is the German text you see. You can make it die with another text if you do not like the German one.
In reply to Re: Opening not-existing command - Error Handling
by choroba
in thread Opening not-existing command - Error Handling
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |