morgon has asked for the wisdom of the Perl Monks concerning the following question:
just for curiosity...
If I have an array of filenames and a glob-pattern (as e.g. "*.hubba"), is there a way to "glob" the array (i.e. get the list of all elements matching the glob-pattern) using the same logic "glob" would use, or would I have to translate the gob-pattern into a regex and do a grep?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: glob an array?
by ikegami (Patriarch) on Oct 20, 2018 at 01:59 UTC | |
by morgon (Priest) on Oct 20, 2018 at 02:29 UTC | |
|
Re: glob an array?
by Marshall (Canon) on Oct 20, 2018 at 03:36 UTC | |
|