in reply to Re^3: -e " " returns true
in thread -e " " returns true
Hey PerlingTheUK,
Here's a quick fix for you until you get around this problem. It produces correct results for those dotty filenames both under Windows XP (5.6.1 active perl) and Linux (RedHat 9, 5.6.1 as well).
Here's a quick fix for you until you get around this problem. It produces correct results for those dotty filenames both under Windows XP (5.6.1 active perl) and Linux (RedHat 9, 5.6.1 as well).
my $f = ". ."; my $result = minuse ($f); print "[$result]\n"; sub minuse { -f $_[0] || &minusd} sub minusd {local *D; opendir (D, shift) && (close (D) || 1)}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: -e " " returns true
by PerlingTheUK (Hermit) on Jul 05, 2004 at 16:47 UTC |
In Section
Seekers of Perl Wisdom