Hi, welcome, please show:
- sample input (in <code></code> tags)
- expected output from that input (in <code></code> tags)
- code you have tried (in <code></code> tags)
- how it fails (in <code></code> tags if it's an error message)
see PerlMonks FAQ: Posting on PerlMonks
The way forward always starts with a minimal test.