Help for this page

Select Code to Download


  1. or download this
    # print 
    for (my $i =1; $i <= $#arr; $i++) {
    ...
       print join(',', @{$arr[$i]})."\n";
    #                   ^        ^ missing   
    }
    
  2. or download this
    Output     Required
    a,2        a,2
    ...
    c,4        c,4
    s          ,s
    w          ,w