in reply to Problem in displaying files
. is the current directory and .. is the parent directory.
It seems like you are treating all your directory entries as files, which doesn't work. So explicitly exclude directories:
foreach my $FILE (@FILES){ next if -d $FILE; print $FILE, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem in displaying files
by Anonymous Monk on Dec 08, 2012 at 16:45 UTC |