in reply to Breaking Text

Your immediate problem is that you're comparing $status with "yes" using a numeric comparison. It should be:
$status eq "yes"
instead of
$status == "yes"
That should fix this problem that you're having.

But you have some other weirdnesses in your code, as well:

Replies are listed 'Best First'.
RE: Re: Breaking Text
by Anonymous Monk on Aug 20, 2000 at 00:40 UTC
    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.