Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: combining two csv files by using math operations

by 1nickt (Canon)
on May 16, 2021 at 13:22 UTC ( [id://11132660]=note: print w/replies, xml ) Need Help??


in reply to Re^4: combining two csv files by using math operations
in thread combining two csv files by using math operations

And instead you got ... ?

Still seems to work as expected with a one-line SSCCE.

$ perl -Mstrict -wE 'my $avg = (1.0 + 3.0) / 2.; say sprintf("%E", $av +g)' 2.000000E+00
Try taking the file ops out of the equation, and add some debugging during the flow to see that your variables contain what you think they do.

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found