wok annotate perl-ipc-system-simple/description.txt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
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.