in reply to Sub only grabbing first line from STDIN
You're closing DOM_WORK in your foreach loop in get_text(). Close it outside of get_text(). Update: jmcnamara, watch me when I install my new turbo charged keyboard... ;-)