I will guess that by "backtrack" what you mean is "extract". If so, then look into XML::Parser or XML::Twig.
the lowliest monk
In reply to Re: Backtracking by tlm in thread Backtracking by nganesh