#!/usr/bin/perl use strict; use warnings; my @files = (' ', ' . . ', ' .. ', ' ', ' . '); foreach (@files) { print "[$_] - ", -e $_ ? "yes\n" : "no\n"; } __END__ [ ] - yes [ . . ] - yes [ .. ] - yes [ ] - yes [ . ] - yes
In reply to Re^2: -e " " returns true
by crazyinsomniac
in thread -e " " returns true
by PerlingTheUK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |