Re: need logic and one error help

2005-03-28 Thread T Raymond
Hi Charles and everyone, 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

RE: need logic and one error help

2005-03-28 Thread Charles K. Clarkson
T Raymond 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

RE: need logic and one error help

2005-03-28 Thread Charles K. Clarkson
Steven Schubiger wrote: : On 28 Mar, T Raymond wrote: : : : print header, : : What is header supposed to act on? : If it's the method declared in CGI.pm, which I'd assume, : you need to create an object by saying my $q = new CGI and : replace header with $q->header.

Re: need logic and one error help

2005-03-27 Thread Steven Schubiger
On 28 Mar, T Raymond wrote: > #!/usr/bin/perl -w Refactor with use warnings instead of -w. -w leaks warnings to all scopes, i.e. external modules, whereas warnings keeps itself to the local block. See perldoc warnings therefore. > print header, What is header supposed to act on? If it's the m

Re: need logic and one error help

2005-03-27 Thread T Raymond
Hi, This is a homework assignment but we are allowed to get help. --Tee T Raymond 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. I'm also getting an error which I don't understand which states that m/^$first_