I am trying to figure out a way to initialize a hash without having to go through a loop. I was hoping to use slices for that, but it doesn\'t seem to produce the expected resul
For the first one, try
my %hash = ( "currency_symbol" => "BRL", "currency_name" => "Real" ); print Dumper(\%hash);
The result will be:
$VAR1 = { 'currency_symbol' => 'BRL', 'currency_name' => 'Real' };