1. Perl
  2. Operators
  3. Arithmetic operator
  4. here

Multiplication operator "*" - Multiplication of numbers

You can use the multiplication operator "*" to multiply numbers.

my $num3 = $num1 * $num2;

This is an example that multiplies 3 and 5.

my $num = 3 * 5;

In Perl, even a small number of multiplications can be done without being aware of the type.

my $num = 3.5 * 2.7;

Explanation of arithmetic operators

The multiplication operator is one of the arithmetic operators. For a detailed explanation of arithmetic operators, see the Arithmetic Operators Explanation page.

Related Informatrion