Update page 'Future P# Versions'
@@ -18,9 +18,11 @@ A data structure is a group of data elements grouped together under one name. Th
|
|||||||
} $person1, $person2;
|
} $person1, $person2;
|
||||||
struct data $person3;
|
struct data $person3;
|
||||||
|
|
||||||
$person.fname = 'Martin';
|
$person1.fname = 'Martin';
|
||||||
$person.lname = 'Smith';
|
$person1.lname = 'Smith';
|
||||||
$person.age = 27;
|
$person1.age = 27;
|
||||||
|
|
||||||
|
$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