in reply to calculate sum of numbers inside a text file
No.
An array can't call anything. It's a data type.
But there is a way to use Perl to read the text file and return the positive and negative numbers in separate arrays. In fact, there's more than one way to do it.
You should show a short example program demonstrating what you have so far, so that people can help you. Also post a sample of your data file and an example of what you want the output to be. Please read up on how best to post a question in the PerlMonks FAQ linked to the right. If you haven't got as far as a working or failing test program, familiarize yourself with the basics of perl with perlintro.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: calculate sum of numbers inside a text file
by CR18 (Initiate) on Sep 27, 2015 at 04:32 UTC |