Simply take a real world example, with code that actually runs - not like your pseudocode that produces errors (unquoted strings, missing comma). Then write what you expected as output and what you got instead.
This way, the monks here can quickly copy and paste your code, try it out and fix it for you :).
Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.