Scalars hold one value and can feed arithmetic expressions.

Scalars

scalars.pl
use strict;
use warnings;

my $unit_price = ;
my $quantity = 3;
my $total = $unit_price * $quantity;

print "unit=$unit_price\n";
print "total=$total\n";
use strict;
use warnings;

my $unit_price = ;
my $quantity = 3;
my $total = $unit_price * $quantity;

print "unit=$unit_price\n";
print "total=$total\n";
use strict;
use warnings;

my $unit_price = ;
my $quantity = 3;
my $total = $unit_price * $quantity;

print "unit=$unit_price\n";
print "total=$total\n";
arithmetic Perl uses familiar operators like `*` and `+` to calculate numeric values.