in reply to
if statement not working
Just a small change in your code if ( $_ == "aaaa" ) , you are comparing characters so it should be if ( $_ eq "aaaa" ) Now it should work.
Comment on
Re: if statement not working
In Section
Seekers of Perl Wisdom