in reply to Re: glob() and dot files
in thread glob() and dot files
This prints all simple files, but skips directories.
my @files = glob ('*.*');
No, it prints any file or directory names that have a dot in them. It's a very old DOS convention that files had extensions and directories didn't, but nowadays that's not true anymore. You'd need grep {!-d} glob('*') to exclude directories.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: glob() and dot files
by Marshall (Canon) on Apr 13, 2020 at 09:04 UTC | |
by haukex (Archbishop) on Apr 16, 2020 at 20:17 UTC | |
by Marshall (Canon) on Apr 18, 2020 at 06:38 UTC |
In Section
Seekers of Perl Wisdom