Hi Im working on perl script to split Big xml to small chunks. And i have refereed this link Split file by XML tag
and my code is like this
if($line =~ /^</row>/)
{
$count++;
}
but im getting this error
works\filesplit.pl line 20.
Bareword found where operator expected at E:\Work\perl works\filesplit.pl line 2
0, near "/^</row"
(Missing operator before row?)
syntax error at E:\Work\perl works\filesplit.pl line 20, near "/^</row"
Search pattern not terminated at E:\Work\perl works\filesplit.pl line 20.
Can anyone help me
Update
<row>
<date></date>
<ForeignpostingId />
<country>11</country>
<domain>http://www.xxxx.com</domain>
<domainid>20813</domainid>
</row>
<row>
<date></date>
<ForeignpostingId />
<country>11</country>
<domain>http://www.xxxx.com</domain>
<domainid>20813</domainid>
</row>
<row>
<date></date>
<ForeignpostingId />
<country>11</country>
<domain>http://www.xxxx.com</domain>
<domainid>20813</domainid>
</row>