Push

Updated: 11/10/2017 by Computer Hope

Push may refer to any of the following:

1. In general, push refers to the action of pressing down on something. For example, with a push-button you are pressing down on a button either physically (e.g. a power button) or virtually in a software program (e.g. clicking the back button in a browser).

2. In programming, push is a function that can add one or more elements to the end of an array. For example, in the Perl code below push adds "three" to the end of the array to make it "one two three". With push, you could also push a variable to the end of an array or combine arrays by pushing another array to the end of an array.

my @example = ('one', 'two');
push @example, 'three';
print "@example"; #Prints: one two three

Tip: You can use shift to remove the first element of an array or use pop to remove the last element of an array.

3. Push is another name for a back quote.

4. Push may also be used to describe push technology, which is used with Internet-based communication.

Programming terms, Push notification, Pushd