Now would seem a good time to follow Corion's excellent advice above, otherwise you will find yourself "replaying" this discussion and others like it many times in coming months and years. And yes, PerlMonks is sometimes a code (re)writing service, but that depends greatly on who happens to be present and the time they have available, and on the application: bioinformatics, yes; password cracking, not so much.
Give a man a fish: <%-{-{-{-<
| [reply] [d/l] |