in reply to Re: Breaking Text
in thread Breaking Text
The first element of @$text is always Text::Break so I'm just getting rid of that. I'll redo the variable names, I've just kinda added them quickly trying to figure out the problem. I was trying to make it so that someone could call the method like this ->break(@array, 13) and have it break after 13 elements in the array. There's probably a better way to do it (using a pop), but I wasn't sure how, 'cause I wanted to make it optional. I don't understand about the anonymous closure, maybe you could give me an example :) One more thing, you also can't use the back command more than once, help? thanx.