in reply to A line of code matches the question

When I run your code as it stands I get this:

$ perl 1197154.pl aaa22 22 22 aaa22 aaa22 aafsdfsdfa22

How does this output differ from what you expect/want?

If you want the same output but by some other means, then you would need to be a lot more specific about what those other means might be.

Replies are listed 'Best First'.
Re^2: A line of code matches the question
by *2 (Novice) on Aug 10, 2017 at 17:01 UTC
    This is no problem, I'm sure. If you have other methods, expect you to reply again. I like different ways to solve the same problem! Thanks again for the monks!