Have you inspected/printed out the values of $previous_line and $current_line while your program goes through the loop?
In reply to Re: Issue with unless statement with two conditions acting on two lines
by Corion
in thread Issue with unless statement with two conditions acting on two lines
by rjc33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |