14 lines
282 B
Perl
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',
|
||
|
);
|
||
|
|
||
|
|
||
|
|
||
|
|