Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Summing numbers in a file

by perlfan (Vicar)
on May 31, 2020 at 06:27 UTC ( [id://11117522]=note: print w/replies, xml ) Need Help??


in reply to Summing numbers in a file

There is no question, I would use WWW::WolframAlpha or duck duck go APIs. And with Wolfram Alpha, get all kinds of other information.

Replies are listed 'Best First'.
Re^2: Summing numbers in a file
by marto (Cardinal) on Jun 03, 2020 at 11:12 UTC

    The question asked was 'If I have a file with two numbers, say: numbers.txt ... I want to create a program which will output the sum of those numbers in a different file called sum: sum.txt:'. The response that you'd use a computer more than capable of adding numbers together, to call a third party online service to achieve this is saddening.

      It’s the way of the world. A kind of micro-offshoring. :P

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-03-28 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found