Core Function Values
From Sputnik Wiki
(Difference between revisions)
(→array) |
|||
Line 13: | Line 13: | ||
The array to use. | The array to use. | ||
+ | ==== flag ==== | ||
+ | |||
+ | Limiter | ||
+ | |||
+ | <pre> | ||
+ | 0 = Return all keys (default) | ||
+ | 1 = Return all hash keys (strings only) | ||
+ | 2 = Return all array keys (numeric only) | ||
+ | </pre> | ||
=== Return Value === | === Return Value === |
Revision as of 06:46, 18 March 2014
Values( <array> )
Contents |
Description
Create an array containing all VALUES from a Hash (Dictionary)
Parameters
array
The array to use.
flag
Limiter
0 = Return all keys (default) 1 = Return all hash keys (strings only) 2 = Return all array keys (numeric only)
Return Value
Success: A new array containing any/all values.
Failure: Returns empty array.
Remarks
None.
Example
my $array = array( "One" => "Cat", "Two" => "Fire", "Three" => "FoX", "Four" => "Water", "moo", "lol" ); my $Values = Values( $array ); foreach( $Values as $Value ) { println( "Value: $Value" ); }