Symbols attached to variable names, showing datatype or scope.
A sigil is a symbol attached to a variable name, showing the variable's datatype or scope.
For instance in Perl, $
is the sigil denoting scalar type of the variable $foo
, while @
is the sigil denoting the array type of @foo
.
For more information and a list of other languages featuring sigils, see the Wikipedia article on sigils.