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

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 09:32:27 2022 +0000 (20 months ago)
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 Oct 01 09:32:27 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.