Help for this page

Select Code to Download


  1. or download this
    my $FILENAME4 = "organized.txt";
    open(DATA2, $FILENAME4);
    
  2. or download this
    my $FILENAME4 = "organized.txt";
    open DATA2, '<', $FILENAME4 or die "Cannot open '$FILENAME4' $!";
    
  3. or download this
    #remove all previous re-organized files
    my $remove_reorganized = "re-organized.txt";
    ...
                print "Cannot open file \"$outputfile\" to write to!!\n\n"
    +;
                    exit;
            }
    
  4. or download this
    # make a file for the ouput
    my $outputfile = "re-organized.txt";
    open POS, '>', $outputfile or die "Cannot open file '$outputfile' to w
    +rite to because: $!";
    
  5. or download this
    $organized =~ s/(\w+)[^(^\d+)(\s)]/z/g;