Update page 'Future P# Versions'
@@ -20,7 +20,7 @@ A data structure is a group of data elements grouped together under one name. Th
|
|||||||
$person1.lname = 'Smith';
|
$person1.lname = 'Smith';
|
||||||
$person1.age = 27;
|
$person1.age = 27;
|
||||||
|
|
||||||
$person2.{fname = 'Andrew', lname = 'Smith', age = 22};
|
$person2 = {fname => 'Andrew', lname => 'Smith', age => 22};
|
||||||
%>
|
%>
|
||||||
|
|
||||||
Structure members can be access by using a dot operator (.). The arrow operator cannot be used because a structure is not an object.
|
Structure members can be access by using a dot operator (.). The arrow operator cannot be used because a structure is not an object.
|
||||||
|
|||||||
Reference in New Issue
Block a user