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

That should be
elsif (my ($entry) = /^\s*\Q$object->{type}\E-object\s+(.*)/) {
but I fixed it with something simpler.

Replies are listed 'Best First'.
Re^4: Help on multiline regex
by LanX (Saint) on Jun 01, 2011 at 18:50 UTC
    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.
        Thanks guys! I was going down the wrong route I guess.