open(Input, '+<…') || die "No such file found!";
Well this form of open is considered much worse then
open my $input, '+<', 'file...';
First, Input is a global variable and those are generally to be avoided. Second, when you don't specify the mode (here +<) separately, Perl will treat various funny characters (whilespace, |, etc) in filenames in a special way. Which is usually not what you want.
With your code, when I run it I receive a log file with all the data properly formatted. I simply cannot seem to find the right way to then print that out to my Output file.
The easiest way would be to use the shell:
perl script.pl > output.txt
I'm pretty sure that works with cmd.exe too. Another easy way is to reopen STDOUT (this is where print prints by default - normally the terminal) at the beginning of the program:
open STDOUT, '>', 'output.txt' or die $!
There are a few more edits I need to make to the file before writing out as well. Would I write another subroutine, such as "handle_section" and place it within the primary subroutine?
Sure, that's one way to do it. Another one would be to write one more script and pipe the output of first script to the second (in the shell)
perl first.pl | perl second.pl
The first script prints to STDOUT and the second one reads from STDIN:
while (my $line = <STDIN>) { ... }

In reply to Re^8: Use Perl's Sort to only sort certain lines in a file? by Anonymous Monk
in thread Use Perl's Sort to only sort certain lines in a file? by grahambuck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.