MikeCopeland
Programmer
I am just starting to learn Perl, and I have a simple question: why is the "!" (in the "Hello..." statement) appearing on a new line in the following program's execution?:
#!/usr/bin/perl
print "The Phantom Spitter was here.\n";
print "Enter your name: \n";
$myName = <STDIN>;
print "Hello, $myName!\n"; ## <--this line...
print "Finis...";
#!/usr/bin/perl
print "The Phantom Spitter was here.\n";
print "Enter your name: \n";
$myName = <STDIN>;
print "Hello, $myName!\n"; ## <--this line...
print "Finis...";