Help for this page

Select Code to Download


  1. or download this
    my @pre_push = qw(test test2);
    my $level = 2;
    ...
    
    $buff .= $_ for map {"\n" . ('  ' x ($level - 1)) . $_} @pre_push;
    print $buff;
    
  2. or download this
    
      test
      test2
    
  3. or download this
    $buff .= "\n" . ('  ' x ( $level - 1)) . $_ for @pre_push;