http://qs1969.pair.com?node_id=11115429


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.