wok-6.x annotate perl-ipc-system-simple/description.txt @ rev 24687

Up musl-libc (1.2.2) CVE-2020-28928
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 12 11:02:58 2022 +0000 (2022-03-12)
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.