Task

Create an enumeration of constants with and without explicit values.




# Using an array
my @fruits = qw(apple banana cherry);
 
# Using a hash
my %fruits = ( apple => 0, banana => 1, cherry => 2 );