It seems that the IDs parameter requires a reference to an array so you need to split your string $bookIDList into an array, the brackets will then turn that into a reference:
my $bookIDList = "abc,ghj,zxc,bnm,qwe,rty,iop,sdf,ert";
my $param = {
IDs => [ split /,/, $bookIDList ],
sort => "AUTHOR",
maxResults => 100
};
or you build a list in the first place and feed a reference to that list:
my @bookIDList = ( "abc", "ghj", "zxc", "bnm", "qwe", "rty", "iop", "s
+df", "ert" );
my $param = {
IDs => \@bookIDList,
sort => "AUTHOR",
maxResults => 100
};
|