Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 exploiting the Monastery: (4)
As of 2014-09-17 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls