Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Error with XML::XPath::Literal

by rob_au (Abbot)
on Nov 03, 2004 at 11:54 UTC ( #404867=note: print w/ replies, xml ) Need Help??


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'"


Comment on Re: Error with XML::XPath::Literal
Select or Download Code
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:)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://404867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2016-02-10 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (354 votes), past polls