clear

Synopsis

clear(@array)

Removes all of the contents from @array.

clear(%hash)

Removes all of the contents from %hash.

Parameters

@array, %hash - the array to remove the contents from

Side Effects / Notes

Examples

@a = @(1, 2, 3, 4, 5); clear(@a); println("@a is: " . @a);

@a is: @()

See Also