in reply to Regex Split and Formatting
"...not allowed to use any modules?"
If that means your problem is homework, you should have so labeled it to begin with.Further: What did you try? How did it fail?
We like to know the answers to these questions...because the Monastery's mission is to help you learn; not to do your homework.
In Section
Seekers of Perl Wisdom