in reply to Re: Help on multiline regex
in thread Help on multiline regex

better  elsif (my ($entry) = /^\s*${object_type}-object\s+(.*)/) {

Cheers Rolf

Replies are listed 'Best First'.
Re^3: Help on multiline regex
by ikegami (Patriarch) on Jun 01, 2011 at 18:40 UTC
    That should be
    elsif (my ($entry) = /^\s*\Q$object->{type}\E-object\s+(.*)/) {
    but I fixed it with something simpler.
      elsif (my ($entry) = /^\s*(\S+)-object\s+(.*)/)

      ehm, if you match the type, $entry is the second match...

      fun ... untested code reviews... like freestyle rapping xD

      Cheers Rolf

        argh. Guess we're both off today. Removed the extraneous parens.