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 <hello happy new year 2013>; +7 print "my array is : @arr \n"; +8 +9 ## lets print in a loop +10 my $i = 0; +11 while ($i <= $#arr) +12 { +13 print $arr[$i]; +14 $i += 1; +15 }; +16 print "\n"; I expected the output of printing Array in line 7 to be same as printing each element. However, output of line 7 is : hello happy new year 2013 while printing each element: hellohappynewyear2013 Why do i have white-space between words when printing array while not getting white-space when printing individual element. Thanks, Neeraj