A scalar is a variable that holds a single value, a single string, or a number.
# The name of the scalar is preceded by a "$" sign. Scalar context means that one value is being used.
$first_name = "M";
$last_name = "Q";
$salary = 125000.00;
print $first_name, $last_name, $salary;
Related examples in the same category