R
Rajpreet
Greetings,
I am trying to append an alphabetical counter to a string. But
concatenation shows a very strange behaviour in this case. Can some
one please help?
The piece of code looks like :
$self->{"log"}->debug(" In Function _process_array_data. ");
$self->{"log"}->debug(" temp 4,data[11],ctr value s are : $temp-
$temp->[4] = substr($data->[11],0,2).substr($data-
And output in debug file is something like this :
DEBUG: temp 4,data[11],ctr value s are : , NX200802118966, the
counter value is : AA
DEBUG: temp 4 value is : NX02118966 the counter value is : AA
And in output file the record comes like :
211012 00003855 1992 NX02118966
th
I am not able to understand the root cause as one thing being string
not geting appended and second thing is from where " th" coming?
TIA.
Regards,
Rajpreet
I am trying to append an alphabetical counter to a string. But
concatenation shows a very strange behaviour in this case. Can some
one please help?
The piece of code looks like :
$self->{"log"}->debug(" In Function _process_array_data. ");
$self->{"log"}->debug(" temp 4,data[11],ctr value s are : $temp-
[4], $data->[11],$ctr ");
$temp->[4] = substr($data->[11],0,2).substr($data-
$self->{"log"}->debug(" temp 4 value is : $temp->[4] ");[11],-8)."$ctr";
And output in debug file is something like this :
DEBUG: temp 4,data[11],ctr value s are : , NX200802118966, the
counter value is : AA
DEBUG: temp 4 value is : NX02118966 the counter value is : AA
And in output file the record comes like :
211012 00003855 1992 NX02118966
th
I am not able to understand the root cause as one thing being string
not geting appended and second thing is from where " th" coming?
TIA.
Regards,
Rajpreet