Skip to main content

Perl Operators

Operator is very important part of every programming language. That is series of symbols which is perform specific task. That are capable to perform mathematical operations, comparison of expression, assignment of values etc. Basically operator are based on operands. Operands is a value or variable which are store some values. Let is an example.

#!/usr/bin/perl
use warnings;
use strict;

#Here $number, 1 and 2 is an operand
my $number = 1 + 2;

print ($number,"\n"); #3

#Here $number and 2 is an operand
$number = $number - 2;

print ($number,"\n"); #1




Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment