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