Flat | $scal | |||
_ string | ||||
_ numbers | ||||
_ typed pointers | ||||
Structured | ||||
_ vectors / lists | @array | (val1,val2,...) | $array[$index] | |
_ hash-tables | %hash | (key1,val1,key2,val2,...) | $hash{$key} | |
Internal | ||||
_ filehandles | FLHD | |||
_ subroutines | &func | sub func($$...$) { ... } |
if(clause1) { expr1 ; ... } | expr1 if clause1 ; |
elsif(clause2) { expr2 ; ... } | expr3 unless clause2 ; |
else { expr3 ; ... } |