in reply to Need Help Badly!!!

Well, you have certainly managed to ask your question badly -- nay, almost unintelligibly -- and I, for one, am unwilling to spend the requisite time to figure out the details of what you're talking about in this basically unformatted blob of text.

But based on what I do understand, you're asking for a completed program that satisfies all the multi-path possibilities outlined above.

That's not gonna' happen; suggest you and your group spend Tuesday reading the FAQs and other guidance about Perl Monks and how to ask questions here:

We're here to help; not to serve up free code, so heed the advice above ... and then try again, next week, with code and far more limited specs.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.