Also, you do not need to put a trailing semicolon at the end of your else block. All this does is create an empty statement that does nothing.if ($student = "") { print "Cannot find that student, try again\n"; } else { print "$_ has a" . $student . "\n"; }
In reply to Re: Printing two variables in the same line
by The_Rabbit
in thread Printing two variables in the same line
by JustLikeThat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |