wok-current diff perl-ipc-system-simple/description.txt @ rev 24694
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 12:06:14 2022 +0000 (2022-03-13) |
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 Sun Mar 13 12:06:14 2022 +0000 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.