in reply to how to run system commands
Second, always assume the system call will fail at some time and add an error printout using die or Carp. UN!X System calls use the opposite return result convention to regular perl calls like open(), that's why && rather than the more-usual or.#!/usr/bin/perl -w $file = 'index.php'; system("cat $file") && die "System call failure: $!\n"; print "\n";
system('cat', "file") && ..
|
|---|