Help for this page

Select Code to Download


  1. or download this
    foreach $line ( @fileData ) {
        $linenumber++;
    ...
            print "$linenumber\n";
        }
    }
    
  2. or download this
    for ( @fileData ) {
        $linenumber++;
    ...
            print "$linenumber\n";
        }
    }
    
  3. or download this
    $l++,/^1$/&&print$l.$/for@f;