http://www.perlmonks.org?node_id=984092


in reply to Re: Glob and lstat
in thread Glob and lstat

Interesting. Forgive me, my C is a little rusty these days... it looks to me like the lstat call is there to facilitate the "GLOB_MARK" functionality, which causes glob to append a / to the end of any returned items which are directories. Unfortunately, it also appears that the lstat operation is performed even if the flag in question was not in fact specified. Oh well, it is good to learn now things.


They say that time changes things, but you actually have to change them yourself.

—Andy Warhol