There is a newline character at the end of each line after you press ENTER.
To remove this unwanted character, Perl has the chomp function which does the trick.
my $s=""; while(chomp($s.=<STDIN>)){print "$s\n"}
In reply to Re: Noob's question
by trizen
in thread Noob's question
by gonny95
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |