programming-examples/perl/_Basics/Assignment Statements.pl
2019-11-15 12:59:38 +01:00

14 lines
282 B
Perl

variable=expression;
$salary=50000; # Scalar assignment
@months=('Mar', 'Apr', 'May'); # Array assignment
%states= ( # Hash assignment
'CA' => 'California',
'NM' => 'New Mexico',
);