[sword-devel] Perl Sword string comparison problem

Peter von Kaehne refdoc at gmx.net
Thu Sep 3 18:36:15 MST 2015


On Fri, 2015-09-04 at 07:17 +1000, Mark Morgan wrote:
> Peter,
> 
> I don't use Perl, but it seems to me that you are assigning $doc_text 
> to $tmp and thus throwing away the new SWBuf you created.  From then 
> on, $tmp and $doc_text will refer to the same thing.  The string they 
> contain will never be different.

That is positively weird, but you were absolutely right. I clearly have
a lot to learn still. I did think a variable is a variable, so it means
it is variable, not constant.... :-)

I separated the bond and now things work exactly as intended. 

Many many thanks!

Peter



More information about the sword-devel mailing list