map { print $_; } somefunc() # that returns code apache would gen for dir index