Help for this page

Select Code to Download


  1. or download this
    my @step = (1..9, 0);      # Use of comma operator, no need for push
    my $step = join '', @step; # Use of specific function for the task
    print ($step x 7);
    
  2. or download this
    my $step = join '', (1..9, 0);
    print ($step x 7);
    
  3. or download this
    print ((1..9, 0) x 7);