Help for this page

Select Code to Download


  1. or download this
    my @q[0..1] = ( "\n" x 2);  # other initialization may be apropos
    
    ...
    }
    # current line, the last line is now in $q[0]
    
  2. or download this
    # handle last line in loop
        if ( not defined $q[1] ) {
    ...
              do_something( \@q);
              last;
         }