Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: question about variables from new perl user

by rst (Initiate)
on Dec 01, 2015 at 02:04 UTC ( [id://1148987]=note: print w/replies, xml ) Need Help??


in reply to Re^2: question about variables from new perl user
in thread question about variables from new perl user

Thank you everybody,
choroba, it takes a little bit of time to wrap my mind around the idea that an array with with numerical indices and one with alphanumeric indices are different. None of C/C++ and PHP are like that. I will have to get used to that.
Apero and Grandfather, thank you for the explanation of what is going on , the right way to do things, and the warnings.
Cristoforo, thank you for your insight. sometimes you learn a lot from breaking the rules. (and sometimes you learn fire is hot and it can burn ;) )
Thanks again,
Ray
  • Comment on Re^3: question about variables from new perl user

Replies are listed 'Best First'.
Re^4: question about variables from new perl user
by GrandFather (Saint) on Dec 01, 2015 at 04:06 UTC

    Actually C only has indexed arrays. PHP only has associative arrays. C++ has both with indexed arrays as first class citizens (inherited from C) and associative arrays supplied as part of the standard template library. Perl has both as first class citizens.

    Premature optimization is the root of all job security

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-24 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found