I have a hash $customs
which looks like:
{
'custom1': 'a',
'custom2': 'b',
...
}
I'm trying to pass it the a REST API. The data should look like:
{
'data': {
'customs': {
'custom1': 'a',
'custom2': 'b',
...
}
}
}
The code:
my @data = [{ 'customs' => \%customs }];
my $request = PUT($url,@data);
But in my REST API I see that the data
is:
{'customs': ['HASH(0x1e47648)']}
How should I pass it right?