for (1..4) { if (-e $0) { print("I exist\n"); } else { print("I don't exist\n"); } }