Core Function Keys
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Keys( <array> ) </pre> === Description === Create an array containing all KEYS from a Hash (Dictionary) === Parameters === ==== array ==== The array to use. === Retur...")
Newer edit →
(Created page with "<pre> Keys( <array> ) </pre> === Description === Create an array containing all KEYS from a Hash (Dictionary) === Parameters === ==== array ==== The array to use. === Retur...")
Newer edit →
Revision as of 04:55, 22 April 2012
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" ); }