Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    open FILE, '>', $file or die "Can't write to $file!\n";
    print FILE @lines;
    close FILE;
    
  2. or download this
    use strict;
    use warnings;
    ...
            $lines[$_] = (split( /\s/, $lines[$_] ))[0] . "\n";
        }
    }