Dear All,

This is the warning messge I am getting when I executed my script. Please find my analysis of the above warning

Input:

Line 1:  20(1): 125-126
Line 2:  20:125-126

Output:

Line 1:  <volume>20</volume>(1): <fpage>125</fpage>-126
Line 2:  <volume>20</volume>:<fpage>125</fpage>-126

My Code:

$line=~s!(\d+)(\(\d+\))?:(\d+)-!<volume>$1</volume>$2:<fpage>$3</fpage>-!g;

Both the lines were converted correctly with the message in the subject line for the Line 2:

Please help me in avoiding the warning message.

Regards,
Ganesh


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to