in reply to Getopt::Long problem

./prog.pl -o "function(key => './path')"

works for me, in the bash.