Help for this page

Select Code to Download


  1. or download this
    ...
    Preceding context expects a term, but found infix = instead.
    Did you make a mistake in Pod syntax?
    ...
    ------> for =^$fh -> $line1, $line2 {
    
  2. or download this
    my $fh = open("file");
    for $fh.lines,$fh.lines -> $line1,$line2 {
        say $line1;
        say $line2;
    }
    
  3. or download this
    for $fh.lines -> $line {
        say $line;
    }