On Mon, February 26, 2007 4:05 am, Sayed, Irfan \(Irfan\) wrote:
> Hi all,
>
> # /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
Another way to add to the many:
#!/usr/bin/perl
use strict;
use warnings;
my @test = (1,2,3,4,5);
foreach (@test) {
my $testprint = (<@test>);
print "$testprint\n";
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/