When typing == i always got "good choice" but when i typing "eq" always print bad choice
#!/usr/bin/perl print "what is your name\n"; $name = <STDIN>; print "hello $name"; print "select letter\n"; $select = <STDIN>; if ($select == a) { print "good choice\n"; } else { print "bad choice\n"; }
I wanna do something like if i type "a" print good choice else bad choice but i don't know where the problem is ?
In reply to What i doing wrong by MSPM5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |