DEV Community

Discussion on: Perl Sigil is inherited from Shell Script Variable Expansion.

Collapse
 
emilper profile image
Emil Perhinschi

"$var and @var and %var are completely independent variables"

they're not independent in the symbol table

"var itself" would be a subroutine, which is stored in the same symbol table and accessed by using the & "sigil" if you really want to use "&", though the compiler tries subs first when encountering barewords