thanks this helps a lot. On Aug 22, 7:11 am, [EMAIL PROTECTED] (Chas Owens) wrote: > On 8/22/07, Paul Lalli <[EMAIL PROTECTED]> wrote: > > > > > 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"; > > snip > > If each pair needs to be on its own line then you either need to not > chomp $y or you need to add a "\n" to $c like this > > my $c = "$x $y\n";- Hide quoted text - > > - Show quoted text -
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/