Help for this page

Select Code to Download


  1. or download this
    $i = 2;
    $j = 4;
    print "$_\n" for ($i..$j);
    
  2. or download this
    2
    3
    4
    
  3. or download this
    # show lines 2 thru 4
    while (<>) {
    ...
    while (<>) {
      print if $i..$j
    }