http://qs321.pair.com?node_id=967003


in reply to trouble,, need help!

You have two variables called $element, which is confusing to say the least. One is a global which you set to an empty string, and one is set in the subroutine extract_information which you are setting from the passed arguments. That $element is undef because no arguments are passed.