Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by LanX (Chancellor)
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 avoiding work at the Monastery: (3)
As of 2016-10-01 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.