- $
- @
- %
- &
- *
Sigils and variables
Variables in Perl are Sigil + variable name:
- $ - scalar
- @ - array
- % - hash
- & - function (only used in references)
- * - everything (just in very extreme code)
$name_of_a_scalar @name_of_an_array %name_of_a_hash
Variables in Perl are Sigil + variable name:
$name_of_a_scalar @name_of_an_array %name_of_a_hash