Do you know where your variables are? | |
PerlMonks |
Re^3: glob an array?by Marshall (Canon) |
on Feb 14, 2021 at 03:00 UTC ( [id://11128351]=note: print w/replies, xml ) | Need Help?? |
Geez! I have no idea exactly what I was thinking 2 years ago and why my post was so terse - could be a lot of reasons behind
that!
There is no way to use glob() on an array. My post shows the block form of grep, which I prefer. I guess I could have said things like this eliminates a module dependency and will execute faster. I could have also said: "When you think about a subset of an array, think grep. grep could have been called 'filter'". If you are having trouble with simple regexes, we can help you with that. For some reason, I didn't say any of that. I just showed how to do it with grep in a very terse post.
Very few, if any Monk posts are destined to be included in the tomes of Western Literature.
In Section
Seekers of Perl Wisdom
|
|