Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    
  2. or download this
    {
        # For the sake of the example, this assumes that you
    ...
    }
    
    print join(",", 1 .. $in), "\n";
    
  3. or download this
    print $in--; do { print ", $a" } while --$a;
    for ($i=1;$i <= $in; $i++){ print $i-1?",$i":$i; }
    while($in){push @a, $in--;} print join ",", reverse @a;