just trying to test if there is an "@" in a string but it doesn't seem to be working because no matter what i put the ouput in the if gets displayed.
Code:
print "Please enter the sender address: \n";
$mailaddy = <STDIN>;
chomp($mailaddy);
if ($maildaddy !~ /\@/){
print "The e-mail address entered is $mailaddy\n ";