Core Function Keys
From Sputnik Wiki
Keys( <array> )
Contents |
Description
Create an array containing all KEYS from a Hash (Dictionary)
Parameters
array
The array to use.
Return Value
Success: A new array containing any/all keys.
Failure: Returns empty array.
Remarks
None.
Example
my $array = array( "One" => "Cat", "Two" => "Fire", "Three" => "FoX", "Four" => "Water" ); my $Keys = Keys( $array ); foreach( $Keys as $Key ) { println( "Key: $Key" ); }