# sets $list to 0 if the ls worked $list = system("ls") or die "Failed; $!";