programming-examples/perl/Basics/Assignment Statements.pl
2019-11-18 14:44:36 +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',
);