I have an array of elements combined with # which I wish to put in hash , first element of that array as key and rest as value after splitting of that array elements by # But it is not happening.
Ex:
my @arr = qw(9093#AT#BP 8111#BR 7456#VD#AP 7786#WS#ER 9431#BP ) #thousand of data
What I want is
$hash{9093} = [AT,AP];
$hash{8111} = [BR]; and so on
How we can accomplish it using map function. Otherwise I need to use for loop but I wish to use map function.
use strictanduse warningsin effect. For example:Possible attempt to put comments in qw() list.