What is hapening is when I go to dos I type in perl hello.pl and it says what is your name so I put in Randal and it says hello randal . And thats it Its supose to say Hellok Randal! How good of you to be here Thanks betsy#!usr/bin/perl print "What is your name? "; $name = <STDIN>; CHOP($NAME); IF ($NAME EQ "RANDAL") { PRINT "HELLO, RANDAL! HOW GOOD OF YOU TO BE HERE!\N"; } ELSE { PRINT "HELLO, $NAME!\N"; #ORDINARY GREETING }
In reply to Re: Re: I need some beginners help
by betsyt
in thread I need some beginners help
by betsyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |