Mega Code Archive

 
Categories / Perl / System Functions
 

Using system to call a command passed in by an array

@array= ("unlink", "delete_me.txt"); if(system(@array)) {die "The system call failed with this error: $?"}