in reply to Re^2: Applying a regex to part of a string
in thread Applying a regex to part of a string
Your substr is missing the +1 bit. It would only match between character positions 11 and 29, not 30.
In Section
Seekers of Perl Wisdom
in reply to Re^2: Applying a regex to part of a string
in thread Applying a regex to part of a string