You can do most if not all of this in Perl if you're twisted enough. Some hoop jumping may be required*, but I can think of ways to do something that looks like each of these.
*: The braces are especially tricky if warnings are turned on. I'd probably abuse the deprecated multidimensional syntax and tie a hash to the actual function.