> >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
Hello,
The simple way,
print join "\n",@test;
But when @test is large,using join is not good.
It can write then:
for (@test) {
print $_,"\n";
}
--
Jeff Pang
EMAIL: pangj<at>earthlink.net AIM: jeffpang
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
