in reply to Is there a Better work around rather than 9 If else Looping

This was working fine and i was able to get all the 8 scenarios which i was looking out for, but i felt it is not effective since i had to right 8 loops for this, i just want to know that rather than using 8 If -else looping any better effecient and effective way to do it.

Indeed in Perl there's hardly ever the need to have long sequences of if's, elsif's, etc. But it's not as much a matter of efficiency and effectiveness as much as of clumsiness: your code is hard to follow at all. So what can you do instead? One common way is a dispatch table (look it up in Super Search): that approach is very easy when you have to take an action based on which one of a given set of strings a particular one is. In this case you're having a slightly more complex situation, but at a first glance it seems to me that you can still build unique keys for a hash to use. At a further reading, I notice that all your actions amount to some print's, so the hash needs not even be one of coderefs: it's enough that values are strings. That should make for more compact and more readable code.