in reply to Re: Re: I need some beginners help
in thread I need some beginners help
In addition, as scain said, make sure you're typing everything in the same case. See the version of the script I put below for a way to make the script case-insensitive.
A few notes:
#!/usr/bin/perl -w print "What is your name? "; my $name = <STDIN>; chomp($name); if (uc($name) eq 'RANDAL') { print "Hello, Randal! How good of you to be here!\n"; } else { print "Hello, $name\n"; } __END__
------
/me wants to be the brightest bulb in the chandelier!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: I need some beginners help
by betsyt (Initiate) on Aug 07, 2001 at 01:17 UTC | |
by dragonchild (Archbishop) on Aug 07, 2001 at 01:21 UTC |