programming-examples/perl/Basics/To set a variable, use the = operator.pl

7 lines
101 B
Perl
Raw Normal View History

2019-11-18 14:44:36 +01:00
# Setting scalar variables.
$var = "Text";
$number_var = 44.5;
print $var;
print $number_var;