You should be using
print "difference is " . $array[$counter] - $array[$counter - 1];
print "difference is " . $array[$#array] - $array[-2] , "\n";
See correction below
"Imaginary friends are a sign of a mental disorder if they cause distress, including antisocial behavior. Religion frequently meets that description"
In reply to Re: simplish script (I think)
by NetWallah
in thread simplish script (I think)
by notoriousrab430
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |