I am getting the following error when using the below expression,where am I going wrong?

Unmatched ( before HERE mark in regex m/branch from( << HERE .*/ at perl.pl line 38.

I have a variable "$p4filelog" which has the below data,now

1. I want to match only the data after the word "branch from" in the below data,in this case just match"//source/qcom/qct/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#1,#8"

2.From "//source/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#1,#8",remove "#1,",finally the output should be "//source/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#8"

3.I looked at CPAN to find if there are any built-in modules to find the branched history of a file,couldn't find any,any of you guyz are aware of such modules?

p4filelog data below

//depot/asic/msmshared/users/QTVOEMDrops/qtv/player/audioplayer/file.cpp

... #2 change 1548905 edit on 2010/12/09 by sri@SRIXP (ktext) 'Audio loss when doing nultiple '

... #1 change 1548876 branch on 2010/12/09 by sri@SRIXP (ktext) 'Branching for orphan release fo'

... ... branch from //source/qcom/qct/multimedia/qtv/player/audioplayer/rel/1.1/src/file.cpp#1,#8

$Branched_p4path = $p4filelog =~ /branch from(.*/(.*))\#\,(\#\d+)$/;

In reply to Regex to grab data after the work "branch from" by perl_mystery

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.