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.
In reply to Re^2: glob() and dot files
by haukex
in thread glob() and dot files
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |