in reply to Re: why spaces! XML::DOM
in thread why spaces! XML::DOM

Oh come on, that's not very pretty... s/^\s+// and s/\s+$// would do nicely.

But I still don't think that's the problem here

Replies are listed 'Best First'.
Re^3: why spaces! XML::DOM
by Lawliet (Curate) on Jul 10, 2008 at 10:31 UTC

    Yeah, I read your response after I posted mine. (And shouldn't it be s/\s+$/ / ? Notice the space.)

    <(^.^-<) <(-^.^<) <(-^.^-)> (>^.^-)> (>-^.^)>