Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Array of structures within an array of structures.

by Anonymous Monk
on Sep 20, 2013 at 13:35 UTC ( #1055030=note: print w/replies, xml ) Need Help??


in reply to Re: Array of structures within an array of structures.
in thread Array of structures within an array of structures.

corerection
my @classrooms = ( { classname => 1, students => [ { age => 0, fn => 0, id => 0, ln => 0 }, { age => 1, fn => 1, id => 1, ln => 1 }, ], }, ) ; my @classrooms; $classrooms[0]{students}[0]{ln} = 0; #d3 $classrooms[0]{students}[0]{id} = 0; #d3 $classrooms[0]{students}[0]{age} = 0; #d3 $classrooms[0]{students}[0]{fn} = 0; #d3 $classrooms[0]{students}[1]{ln} = 1; #d3 $classrooms[0]{students}[1]{id} = 1; #d3 $classrooms[0]{students}[1]{age} = 1; #d3 $classrooms[0]{students}[1]{fn} = 1; #d3 $classrooms[0]{classname} = 1; #d1

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2019-11-13 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (74 votes). Check out past polls.

    Notices?