What you can do something along these lines:
my $previous = <IN>; while (<IN>) { # compare $_ and $previous here $previous = $_; }
In reply to Re: compare subsequent lines
by moritz
in thread compare subsequent lines
by kevester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |