pear_parse_line refactoring