Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Using grep and glob to find directories containing file

by LanX (Canon)
on Feb 04, 2013 at 00:52 UTC ( #1016881=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Using grep and glob to find directories containing file
in thread Using grep and glob to find directories containing file

> So...list context on the left, which then creates an anonymous array, which array, when evaluated in boolean/scalar context, produces the length of the array?

No arrays involved, not even anonymous!

It's just a list-assignment in scalar context.

I would say much more performant than the former solution.

Cheers Rolf

PS:

> Despite the admonition not to use <> for globbing?

Source?


Comment on Re^5: Using grep and glob to find directories containing file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016881]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2015-07-04 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls