On Feb 12, 2008 5:51 AM, Rajpreet <[EMAIL PROTECTED]> wrote:
> 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-
> >[4], $data->[11],$ctr  ");
>
>     $temp->[4]  = substr($data->[11],0,2).substr($data-
> >[11],-8)."$ctr";
>     $self->{"log"}->debug(" temp 4 value is : $temp->[4] ");
>
> 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?
snip

I don't understand your question.  Try isolating the code that is
giving you problems into a small script.  If you can duplicate the
problem there, post the entire small script (with the data necessary
to duplicate the problem) to this list.  You may find that doing this
willl help you see what is wrong in the original code.

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


Reply via email to