Re: how to concatenate two lists

2010-09-20 Thread rahul patil
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 d

how to concatenate two lists

2010-09-20 Thread rahul patil
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

What does -w means in #!/usr/bin/perl -w

2010-09-19 Thread rahul patil
Hello all, I use linux. whenever we write a perl script we use #!/usr/bin/perl -w at the beginning. What does -w means here? Is it perl specific or linux interpreter needs it? -- Regards, Rahul Patil