Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Using grep and glob to find directories containing file

by 7stud (Deacon)
on Feb 04, 2013 at 18:18 UTC ( #1016987=note: print w/ replies, xml ) Need Help??


in reply to Using grep and glob to find directories containing file

With "goatse" it's a list _assignment_ = which in scalar context returns the number of list elements assigned.

I'll have to accept that on faith. Edit: Well, I guess I don't have to take it on faith:

se strict; use warnings; use 5.012; my $x = () = ('a', 'b', 'c'); #scalar context on left, a list assignment on right #Full goatse syntax: my $x =()= ('a', 'b', 'c'); say $x; --output:-- 3

PS: you replied to yourself twice.

In my opinion, the indenting is a terrible feature. All posts in a thread should be at the same level of indenting--none. If you want to respond to a particular post, you should quote it.


Comment on Re: Using grep and glob to find directories containing file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-07-30 18:28 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 (273 votes), past polls