Hello, I'm very new to perl and put this together real fast... I spent about 100 times as much effort trying to get it to work as I did typing it... help me ploxx? ^^
#!perl print "What is your name?\n"; chomp($name = <STDIN>); if ($name = 'larry') { print "You\'re Larry!\n" } elsif ($name = 'moe') { print "You\'re Moe!\n" } elsif ($name = 'curly') { print "You\'re Curly!\n" }
whenever I run it and enter an name it always comes back larry... I'm sure there's some glaring mistake that I've made but i cant find it.... -.- ty in advance.
In reply to elsif failing by rcd^_-
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |