in reply to Re: glob() and dot files (updated)
in thread glob() and dot files
Hi haukex,
Thanks for pointing out about your glob() post. I think I read it in the past. If wildcard is problematic, this gives me an idea of creating a glob-like function but with regex instead: re_glob('.*') or re_glob(qr/\.foo/). It will not skip dotfiles by default.
By the way, most of the time for practical reasons I don't bother with File::Spec at all, because why would I sacrifice myself using catfile() and no_upwards when I will not be using path separator other than "/", and parent directory other than ".." (probably for the rest of my life).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: glob() and dot files
by haukex (Archbishop) on Apr 13, 2020 at 09:59 UTC | |
by soonix (Chancellor) on Apr 13, 2020 at 11:28 UTC |