in reply to Re: simplish script (I think)
in thread simplish script (I think)
Your second "foreach" is not necessary.
I think the OP is trying to do this with the second foreach:
for(my $i=1; $i < @array; $i++){ print "The difference is ", $array[$i] - $array[$i-1], "\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: simplish script (I think)
by NetWallah (Canon) on Sep 25, 2020 at 15:04 UTC |
In Section
Seekers of Perl Wisdom