Core Function Values
From Sputnik Wiki
Values( <array>, <flag> )
Contents |
Description
Create an array containing all VALUES from a Hash (Dictionary)
Parameters
array
The array to use.
flag
Limiter
0 = Return all values (default) 1 = Return all values (from string keys only) 2 = Return all values (from numeric keys 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" ); }