wok-current diff perl-ipc-system-simple/description.txt @ rev 24215
updated perl-glib (1.3292 -> 1.3293)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 16:25:16 2021 +0100 (2021-12-31) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-ipc-system-simple/description.txt Fri Dec 31 16:25:16 2021 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +Calling Perl's in-built system() function is easy, determining if 1.5 +it was successful is hard. 1.6 +Let's face it, $? isn't the nicest variable in the world to play with, 1.7 +and even if you do check it, producing a well-formatted error string 1.8 +takes a lot of work. 1.9 + 1.10 +IPC::System::Simple takes the hard work out of calling external commands. 1.11 +In fact, if you want to be really lazy, you can just write: 1.12 + 1.13 +use IPC::System::Simple qw(system); 1.14 + 1.15 +and all of your system commands will either succeed (run to completion 1.16 +and return a zero exit value), or die with rich diagnostic messages.