wok annotate perl-ipc-system-simple/description.txt @ rev 25131
updated ebtables (2.0.10-4 -> 2.0.11)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 07:20:53 2022 +0100 (2022-06-29) |
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. |