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

14 lines
282 B
Perl
Raw Normal View History

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