I want to know the difference between these:
my $a = 1;
and
my $a == 1;
my $a eq 1;
== is used when comparing numeric values.
eq is used in comparing string values.
= is the assignment operator, not a comparison operator.