wok view perl-ipc-system-simple/description.txt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | |
children |
line source
1 Calling Perl's in-built system() function is easy, determining if
2 it was successful is hard.
3 Let's face it, $? isn't the nicest variable in the world to play with,
4 and even if you do check it, producing a well-formatted error string
5 takes a lot of work.
7 IPC::System::Simple takes the hard work out of calling external commands.
8 In fact, if you want to be really lazy, you can just write:
10 use IPC::System::Simple qw(system);
12 and all of your system commands will either succeed (run to completion
13 and return a zero exit value), or die with rich diagnostic messages.