I'm declaring my hash table that exists from within a struct. Then later in the code, the program goes through and loads a flat file to read from and it reads each line and populates each line accordingly. I am checking to see if the value exists. The problem is when I check to see if it...
FISH! I need your help again please! How would you initialize a hash later in the code (ie not at declaration). I am getting an error that says "Use of uninitialized value in length at....."
I am calling the length function on a field in my hash that has no value so I want to initialize...
That does work thank you! I am fairly new to PERL so I was having trouble declaring my hash table in the struct, the syntax to populate it, and how to print it out.
I appreciate your answer and feel free to give me any instruction on how the syntax for populating/printing fields from my hash...
How do you add a hash table to this structure?
struct header =>
{
customer => '$',
type => '$',
shares => '$'
};
I need to add a hash table to the header struct to hold a map of friend_type->friend_name. The friend_type string will represent the different friends in the flat.dat file that it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.