in reply to Python dict to perl hash
See Re^3: How to "source" a shell file in Perl? (Trojan Dump) for another but similar approach for bash with inlined code.
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
PS: Je suis Charlie!