Stupid question but I want to add multiple elements into a hast not just a pair:
So,
if I do this and then try to print withCode:chomp($fill{1} = ("Host_1","hostname_1"));
I get :Code:foreach $key (sort keys %fill) { print "\n".$key."\t".$fill{$key}.$fill{$value}."\n\n"; }
I am trying to associate two elements into one key. What am I doing wrong?Code:1 hostname1
I want :
Code:1 Host_1 hostname1
Thanks



Reply With Quote

Bookmarks