Re: Problems Assigning Unique Values to a Hash

2007-06-27 Thread Chas Owens
On 6/27/07, perl_power <[EMAIL PROTECTED]> wrote: Tom, I did make some changes but that actually is still causing me to output each line while looping through the file instead of only adding unique key value pairs to the hash. I can only guess I am overriding the hash each time it loops? Also

Re: Problems Assigning Unique Values to a Hash

2007-06-27 Thread perl_power
Tom, I did make some changes but that actually is still causing me to output each line while looping through the file instead of only adding unique key value pairs to the hash. I can only guess I am overriding the hash each time it loops? Also don't understand the line break I am getting between

Re: Problems Assigning Unique Values to a Hash

2007-06-26 Thread Paul Johnson
On Tue, Jun 26, 2007 at 03:48:21PM -0700, Tom Phoenix wrote: > Does that get you closer to your goal? Good luck with it! Also, you are splitting on | when the data suggests you should split on whitespace. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAI

Re: Problems Assigning Unique Values to a Hash

2007-06-26 Thread Tom Phoenix
On 6/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: open(FILE, " So the input is called something ".out"? Okay, if you must, but you should check the result of open with "or die". my(%hash)=undef; And you should probably add "use strict" and "use warnings", to catch things like this. T

Problems Assigning Unique Values to a Hash

2007-06-26 Thread campbell262
I have a input file with thousands of lines in it. I use this input file to produce multiply reports, one of which I only want to output the unique product names. For the sake of this forum I have shortened the input file from 2 elements down from 9, and only am concentrating on how to deal with