in reply to Re: Perl File Parsing - My Code Works, but it's Ugly!
in thread Perl File Parsing - My Code Works, but it's Ugly!

Hi again!

I just wanted to let you know I reran the script after adding the following lines:

use warnings; use strict;

and received a bunch of error messages in regards to "explicit package name" requirements. For example:

Global symbol "$sec" requires explicit package name

Time to figure out what that means!

Replies are listed 'Best First'.
Re^3: Perl File Parsing - My Code Works, but it's Ugly!
by Nico (Novice) on May 31, 2015 at 18:00 UTC

    I figured it out! It was because I wasn't declaring my variables with "my". Will have to research why that is