Help for this page

Select Code to Download


  1. or download this
    my $inputFile = q{xyz.txt};
    open my $inputFH, q{<}, $inputFile
    ...
    my $outputFile = q{abc.txt};
    open my $outputFH, q{>}, $outputFile
       or die qq{open: > $outputFile: $!\n};
    
  2. or download this
    # Reading lines into $_ in a while loop and removing
    # line terminator
    ...
        chomp;  # Acts on $_ by default
        ...     # Rest of your line-processing code here
    }
    
  3. or download this
    my $rxExtractNameData = qr
       {(?x)
    ...
               \d+\s+\+\s+[+-]?\d+
           )
       };