Sayed, Irfan (Irfan) wrote: > Hi all, Hello,
> # /usr/bin/perl > use strict; > use warnings; > > my $CT = "/usr/atria/bin/cleartool"; > my @test = (1,2,3,4,5); > print "@test\n"; > > The output of the above script is > > 1 2 3 4 5 > > But i need output as > > 1 > 2 > 3 > 4 > 5 > > In short i need to append \n character after every element of the array. print map "$_\n", @test; print "$_\n" for @test; John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
