programming-examples/perl/SystemFunction/Using system to call a command passed in by an array.pl

3 lines
109 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
@array= ("unlink", "delete_me.txt");
if(system(@array)) {die "The system call failed with this error: $?"}