I think you might be helped by looking at something like This based on your experience with Perl. Sometimes the little examples provided are just enough to trigger an understandinig of what you want to do.
Good luck
...the majority is always wrong, and always the last to know about it...
The Spice must flow...
..by my will, and by will alone.. I set my mind in motion