Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by jwkrahn (Abbot)
on Oct 06, 2012 at 06:26 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://997586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found