Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: calculate sum of numbers inside a text file

by CR18 (Initiate)
on Sep 27, 2015 at 05:58 UTC ( [id://1143126]=note: print w/replies, xml ) Need Help??


in reply to Re^2: calculate sum of numbers inside a text file
in thread calculate sum of numbers inside a text file

Can I put this while loop inside my array so that the array will first get the data from the file, and then run the calculation?

Replies are listed 'Best First'.
Re^4: calculate sum of numbers inside a text file
by davido (Cardinal) on Sep 27, 2015 at 06:16 UTC

    No. Arrays are data containers. They do not contain while loops.


    Dave

Re^4: calculate sum of numbers inside a text file
by parv (Parson) on Sep 27, 2015 at 08:51 UTC

    If you must do that, (then) should be able to, though overkill, via tie, object oriented model, etc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-03-28 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found