Request fellow monks to have a look at the following code,
use strict;
use warnings;
my @arr=(12,13,14);
my %hash=(
"outer"=>(
"cool"=>1,
"Kewl"=>2,"odd"
)
);
print keys %hash,"||",values %hash," ",$hash{"2"};
Though the right way to declare is like
my %hash=(
"outer"=>{
"cool"=>1,
"Kewl"=>2,
}
);
I am intrigued after looking at the o/p.How come the supposed to be keys "cool","kewl" became values and values 1,2 became keys.What exactly is the effect of using '()' in-place of '{}'
The world is so big for any individual to conquer