wok-current diff perl-ipc-system-simple/description.txt @ rev 25334

updated sunxi-tools (1.1-80 -> 1.4.2)
author Hans-G?nter Theisgen
date Sat Jul 23 17:16:06 2022 +0100 (2022-07-23)
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	Sat Jul 23 17:16:06 2022 +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.