Increment

Updated: 10/11/2017 by Computer Hope

An increment may refer to any of the following:

1. The process of increasing or decreasing a numeric value by another value. For example, incrementing 2 to 10 by the number 2 would be 2, 4, 6, 8, 10.

2. An increment is also a programming operator to increase the value of a numerical value. In Perl, a variable can be incremented by one by adding a ++ at the end of the variable. In the example below, the value variable is set as 1 and then incremented in value by one with the $value++; line. Therefore, when this variable is printed it prints 2.

my $value = 1;
$value++;
print "$value\n";

Decrement, Incremental backup, Operator, Programming terms, Tabulator