in reply to Re: Report parsing
in thread Report parsing

I'm working with the example you gave, but I am having trouble getting it to work. I get nothing when I attempt to print any values. Where ever there is confusion to be had... I'll be there.

Replies are listed 'Best First'.
Re: Re: Re: Report parsing
by AidanLee (Chaplain) on Jan 24, 2002 at 20:54 UTC

    Well, here are some debugging tips (note I did not test the code...). First, I only gave you a section of the code. I'm sure you can see that I didn't open the file yet, which obviously needs to be done. Also, it's a good idea to use strict at all times, and either use warnings if you're running perl 5.6 or later, or add the -w switch when running your script.

    My personal favorite for monitoring data structures is to use Data::Dumper to view what's going on:

    use Data::Dumper; print Dumper(\%regions);

    will give you output of what the %regions hash currently looks like.

    HTH