Notes: 1  Gain on disposal of investments and interest income are not considered as revenue because they are not earned from the principal business activity of ABC PLC, i.e. selling stationery goods.
To assign values to the various positions in an array, you do it in the normal way: aryNums[0] = 10; Here, a value of 10 is being assigned to position 0 in the array called aryNums. Again, the square brackets are used to refer to each position.
PERL - Adding and Removing Elements. Adding elements is a breeze, we use the following functions to add/remove and elements: 1  push() - adds an element to the end of an array. 2  unshift() - adds an element to the beginning of an array.  pop() - removes the last element of an array.