programming-examples/perl/_Basics/Assignment Statements.pl

14 lines
282 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
variable=expression;
$salary=50000; # Scalar assignment
@months=('Mar', 'Apr', 'May'); # Array assignment
%states= ( # Hash assignment
'CA' => 'California',
'NM' => 'New Mexico',
);