wok-current annotate perl-ipc-system-simple/description.txt @ rev 24885
updated mcabber (0.9.10 -> 1.1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 01 07:52:41 2022 +0100 (2022-04-01) |
parents | |
children |
rev | line source |
---|---|
Hans-G?nter@24179 | 1 Calling Perl's in-built system() function is easy, determining if |
Hans-G?nter@24179 | 2 it was successful is hard. |
Hans-G?nter@24179 | 3 Let's face it, $? isn't the nicest variable in the world to play with, |
Hans-G?nter@24179 | 4 and even if you do check it, producing a well-formatted error string |
Hans-G?nter@24179 | 5 takes a lot of work. |
Hans-G?nter@24179 | 6 |
Hans-G?nter@24179 | 7 IPC::System::Simple takes the hard work out of calling external commands. |
Hans-G?nter@24179 | 8 In fact, if you want to be really lazy, you can just write: |
Hans-G?nter@24179 | 9 |
Hans-G?nter@24179 | 10 use IPC::System::Simple qw(system); |
Hans-G?nter@24179 | 11 |
Hans-G?nter@24179 | 12 and all of your system commands will either succeed (run to completion |
Hans-G?nter@24179 | 13 and return a zero exit value), or die with rich diagnostic messages. |