http://www.perlmonks.org?node_id=404867


in reply to Error with XML::XPath::Literal

You might want to try this (untested) solution - Change line 480 to read:

$total += sprintf( "%d", $t );

The problem results because of the overloaded nature of $t.

 

perl -le "print unpack'N', pack'B32', '00000000000000000000001011101101'"

Replies are listed 'Best First'.
Re^2: Error with XML::XPath::Literal
by perl_seeker (Scribe) on Nov 04, 2004 at 06:12 UTC
    Hello Rob!
    Your solution works, thanks a lot! I have used "%f" instead of "%d", since I need to add floating point numbers.
    Cheers!
    perl_seeker:)