Help for this page

Select Code to Download


  1. or download this
    my @array = ( [1],[2,2],[3,3,3],[4,4,4,4] );
    map{map{print "-",$_}@$_;print"\n"}@array;
    
  2. or download this
    my@a=([],[],[],[],[],[],[],[],[],[]);
    my$a=-1;map{@$_=(++$a)x$a}@a;
    map{map{print "-",$_}@$_;print"\n"}@a;