in reply to Match the starting \>
You do not have to test the appearance of < and > bevor deleting them.
if (/</) { s/<//; }
does nothing different to
s/<//;
In Section
Seekers of Perl Wisdom
in reply to Match the starting \>
You do not have to test the appearance of < and > bevor deleting them.
if (/</) { s/<//; }
does nothing different to
s/<//;