perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
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+)$/;
|
|---|