in reply to Re^3: Extracting lines starting with a pattern from an array
in thread Extracting lines starting with a pattern from an array

As an added bonus, od is part of the PerlPowerTools suite so you don't even have to rely on it being supplied as a binary by your O/S.