On Aug 22, 8:04 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > 1) you need a chomp to strip the newline symbol,so it should be, > > $x=<STDIN>;chomp $x; > $y=<STDIN>;chomp $y;
Or, more conventionally: chomp (my $x = <STDIN>); chomp (my $y = <STDIN>); > 2) Perl use '.' for strings connection,not '+'.So you need, > > $c = $x . ' ' . $y; Or, more conventionally, just use interpolation: my $c = "$x $y"; Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/