- or download this
for (1..4) {
if (glob($0)) {
...
print("I don't exist\n");
}
}
- or download this
I exist
I don't exist
I exist
I don't exist
- or download this
for (1..4) {
if (() = glob($0)) {
...
print("I don't exist\n");
}
}
- or download this
for (1..4) {
if (-e $0) {
...
print("I don't exist\n");
}
}
- or download this
I exist
I exist
I exist
I exist