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

Re^6: Order in which grep/map receive elements

by jwkrahn (Monsignor)
on Oct 06, 2012 at 06:26 UTC ( #997586=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Order in which grep/map receive elements
in thread Order in which grep/map receive elements

Grep receives an array and returns an array.

What is the difference between a list and an array?

grep receives a LIST and returns a LIST.


Comment on Re^6: Order in which grep/map receive elements
Re^7: Order in which grep/map receive elements
by greengaroo (Hermit) on Oct 09, 2012 at 18:44 UTC

    Well, I have used the wrong term. A List is a series of ordered elements. An Array, in Perl, is a variable that contains a List, but a List is not necessarily always an Array. This: (1,2,3) is a List but its not an Array variable.

    Sorry about that, I didn't meant to confuse anyone.

    Thank you jwkrahn for pointing it out!

    There are no stupid questions, but there are a lot of inquisitive idiots.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-08-30 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls