Hi,
I was trying to find out why $input_field{$colname} wasn't returning anything when $colname = "Attendance_Comment", and discovered this odd behavior:

  DB<41> p join "/", keys %input_field
/Attendance_Code/SchoolID/Att_Date/Student_Number
  DB<42> p join "\n", keys %input_field
Attendance_Comment
Attendance_Code
SchoolID
Att_Date
Student_Number
  DB<43> p join ("/", keys %input_field) . "\n"
/Attendance_Code/SchoolID/Att_Date/Student_Number

  DB<44>

Depending on how I join the keys, the first key is either "Attendance_Comment" or empty.

Same behavior with values:

  DB<44> p join "\n", values %input_field
Unexcused
U
190
08/08/2008
100020
  DB<45> p join "/", values %input_field
/U/190/08/08/2008/100020
  DB<46> p join " = ", values %input_field
 = U = 190 = 08/08/2008 = 100020

And, as I said (and what my real problem is), $input_field{$colname} returns empty.

  DB<47> p $colname
Attendance_Comment
  DB<48> p $input_field{$colname}

Any ideas what might be going on here?  I'm completely baffled.

Thanks,
Chap

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to