On Mon, Sep 20, 2010 at 1:30 PM, Chaitanya Yanamadala <
dr.virus.in...@gmail.com> wrote:

> @ar = ("rahul","patil");
> @ar1 = ("nitin");
> @ar4 = (@ar,@ar1);
>
> the only problem is u should not define the array with this { } it should
> be defined within this brackets ();
>
> Chaitanya
>
>
This worked fine.
thanks


>
>
>
> On Mon, Sep 20, 2010 at 1:19 PM, rahul patil <
> rahul.deshmukhpa...@gmail.com> wrote:
>
>> Hello all,
>>
>> below is sample code i have written.Is it right way to declare ar4 which
>> is
>> concatenation of ar and ar1
>>
>> #!/usr/bin/perl
>> @ar = {"rahul","patil"};
>> @ar1 = {"nitin"};
>> @ar4 = {...@ar,@ar1};
>> print @ar4[2];
>>
>> if yes, why it is not printing output as nitin on my system
>>
>> --
>> Regards,
>> Rahul Patil
>>
>
>


-- 
Regards,
Rahul Patil

Reply via email to