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

Re: Array wierdness

by BillKSmith (Monsignor)
on Apr 27, 2022 at 16:03 UTC ( [id://11143356]=note: print w/replies, xml ) Need Help??


in reply to Array wierdness

It may help you to consider that there is no such thing as a "25 x 25 array" in Perl. Of course, we can simulate it with a structure called an "array of array refs" (AoA for short). The subscript notation that you use (documented as an alternate way to dereference a reference)hides this from a casual reader of our code. This works so well that we all tend to ignore the difference. "use strict; is your friend because it lets us know when we forget the subtle difference and accidently create symbolic references.
Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found