size

Synopsis

$ size(@array)

return the number of elements in @array.

$ size(%hash)

return the number of elements in %hash.

Parameters

@array, %hash - the data structure to get the number of elements from

Side Effects / Notes

Examples

@a = @("a", "b", "c", "d", "e"); $size = size(@a); println($size);

5