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

7 lines
101 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
# Setting scalar variables.
$var = "Text";
$number_var = 44.5;
print $var;
print $number_var;