while(@lines1 > 0 and @lines2 > 0) { last if shift(@lines1) ne shift(@lines2); } print "*\n" if @lines1 > 0 or @lines2 > 0;
Makeshifts last the longest.
In reply to Re: comparing strings
by Aristotle
in thread comparing strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |