https://mamchenkov.net/wordpress/2004/10/05/sending-a-hash-to-perls-scalar-function/
Sending a hash to perl's scalar function