#!/usr/bin/perl
my @test  = ("/test" , "/playground");
print @test;
print "\n";
print @test[0],"\n";
print @test[1],"\n";

you must print each array item with a \n

On Jul 20, 2006, at 9:33 AM, Sayed, Irfan ((Irfan)) wrote:

Hi,

I have written following line. but i am getting error

my @test  = ("/test" , "/playground");
print @test;

i am getting output as follows

/test/playground

i need the output in following fasion

/test
/playground

can you please tell me what is wrong?

Regards
Irfan.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to