Re: Array vs List output

2013-01-02 Thread *Shaji Kalidasan*
o God. --- From: John W. Krahn To: Perl Beginners Sent: Wednesday, 2 January 2013 6:11 PM Subject: Re: Array vs List output *Shaji Kalidasan* wrote: > Neeraj, > > If you

Re: Array vs List output

2013-01-02 Thread John W. Krahn
*Shaji Kalidasan* wrote: Neeraj, If you print an array inside double quotes, each item of the array is separated by the value specified in Perl special variable $" which is the Output list separator. (interpolated lists) It is just the _List Separator_ , it has nothing to do with output. Jo

Re: Array vs List output

2013-01-02 Thread John W. Krahn
Neeraj wrote: Hi, I am new to Perl and perplexed with output of printing entire Array vs printing each element +4 ## check Array vis-a-vis List +5 +6 @arr = qw; +7 print "my array is : @arr \n"; +8 +9 ## lets print in a loop +10 my $i = 0; +11 while (

Re: Array vs List output

2013-01-02 Thread *Shaji Kalidasan*
Your talent is God's gift to you. What you do with it is your gift back to God. --- From: Neeraj To: beginner

Re: Array vs List output

2013-01-02 Thread David Precious
On Wed, 2 Jan 2013 16:05:25 +0530 Neeraj wrote: > Why do i have white-space between words when printing array while not > getting white-space when printing individual element. perlfaq explains this - from perlfaq5: Why do I get weird spaces when I print an array of lines? (contributed

Array vs List output

2013-01-02 Thread Neeraj
Hi, I am new to Perl and perplexed with output of printing entire Array vs printing each element +4 ## check Array vis-a-vis List +5 +6 @arr = qw ; +7 print "my array is : @arr \n"; +8 +9 ## lets print in a loop +10 my $i = 0; +11 while ($i <= $#arr) +12 {