Mega Code Archive

 
Categories / Perl / Hash
 

Create hash without using the quotation marks

%hash = (     fruit    ,  apple,     sandwich ,  hamburger,     drink    ,  bubbly, ); print "$hash{fruit}\n";