"be consistent" | |
PerlMonks |
glob an array?by morgon (Priest) |
on Oct 20, 2018 at 01:10 UTC ( [id://1224367]=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi, 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!
Back to
Seekers of Perl Wisdom
|
|