In addition to the other suggestions you've already received, you can eliminate the final loop. Currently, you're making a list of matches, then printing the list at the end of your program. If you print each match as you find it, you'll no longer need the @matches array or the final loop.
...roboticus
In reply to Re: i dont like the way my code looks but work
by roboticus
in thread i dont like the way my code looks but work
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |