It turns out I was clearing my hash each time because it was re-initializing every time. Once I stopped doing that, my error went away. Thanks everyone for your tips and help, I will try to incorporate your tips in my programs.
--Tee
Charles K. Clarkson wrote:
T Raymond <mailto:[EMAIL PROTECTED]> wrote: : Hi all, : Please advise me about my logic/syntax errors. I can't seem to figure : out how to write in a logical sequence this code.
What is in 'employee.dat'? It would be helpful if we could run the example.
: I'm also getting an : error which I don't understand which states that m/^$first_name/ has : an uninitialized variable.
Chances are there is a situation where $first_name is not set to a value before it is used.
HTH,
Charles K. Clarkson
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>