Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: glob directory to array, then wait, and check againby Athanasius (Archbishop) |
on Aug 19, 2017 at 16:13 UTC ( [id://1197664]=note: print w/replies, xml ) | Need Help?? |
Hello flieckster, You need to loop; for example:
Update: Note that (contrary to the node title) it’s not necessary to store the results of the glob in an array. The syntax $count = () = glob '*'; evaluates glob in list context (via the assignment to empty parentheses), then implicitly puts that list into scalar context (by assigning to a scalar variable) to get the list count. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|