in reply to
Help with a programming problem.
The problem is in line
if($count1 = 0 and $count2 = 1)
You assign 0 and 1 to values
$count1
and
$count2
instead of comparing them. Use
==
as comparison operator.
Comment on
Re: Help with a programming problem.
Select
or
Download
Code
In Section
Seekers of Perl Wisdom