http://www.perlmonks.org?node_id=977685


in reply to Dividing up Long Lines

Looks like you have a good start so far. Doesn't look like you have inserted any logic for dealing with if length($a2) > 30 yet. Maybe try doing that first? Did you run into a problem when you tried it?