No such thing as a small change | |
PerlMonks |
Re: How to handle a variable number of results from split()?by AReed (Pilgrim) |
on Jul 20, 2005 at 16:28 UTC ( [id://476561]=note: print w/replies, xml ) | Need Help?? |
I'm sure that there's a more compact way to do this, but I think that this does what you are looking for. I'm also assuming that you meant that each line of your input file had a different number of "dash pairs" such as:
In Section
Seekers of Perl Wisdom
|
|