in reply to Breaking Text
instead of$status eq "yes"
That should fix this problem that you're having.$status == "yes"
But you have some other weirdnesses in your code, as well:
I don't think that's doing what you think it's doing. To be honest, I don't know what you think it's doing, because in the next line you use a regex on it, checking for a comma. Why?$text3 = @$text;
I'll tell you what that line does: it dereferences the array @$text, then evaluates that array in scalar context, which returns the length of the array. So $text3 holds the length of @$text. Is that what you wanted?
Perhaps the text you're expecting is different than the text I was testing with, but that doesn't seem right.shift(@$text);
Use an array slice:while ($extra2 <= $#$text) { $text[$extra4] = $$text[$extra2]; $extra2++; $extra4++; }
@text = @{$text}[$extra2..$#$text];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Breaking Text
by Anonymous Monk on Aug 20, 2000 at 00:40 UTC |