last

# given [1..5]

$array->last; # 5

The last method returns the value of the last element in the array. This method returns a data type object to be determined after execution.

last() : Any

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 20:

Unknown directive: =description

Around line 25:

Unknown directive: =signature

Around line 29:

Unknown directive: =type