in reply to Help with Multiple line RegEx

Your while loop is reading one line at a time. So perhaps something like this might help?

while (<DATA>) { chomp; next if /^$/; next if /^[* -]/; print "$_\n"; }

update:
Corrected regex

Replies are listed 'Best First'.
Re^2: Help with Multiple line RegEx
by blackadder (Hermit) on Oct 10, 2005 at 11:08 UTC
    Thanks for this

    But I want to make sure that I grab the data immidiatly follows the string "-+ show switchname -+".This is in case if there is another pattern similer to your suggestion.
    Blackadder