Help for this page

Select Code to Download


  1. or download this
    my @lines = qw/a b c d e/;
    my $total = @lines;
    
  2. or download this
    $lines[5]
    
  3. or download this
    for my $i (0..$total-1) {
    ...
    
  4. or download this
    my $total = grep $_ ne "\n", @lines;