Question : difference between @ and $ in perl
Answered by : mvp
$ for scalar values (number, string or reference)
@ for arrays
% for hashes (associative arrays)
& for subroutines (aka functions, procedures, methods)
* for all types of that symbol name. In version 4 you used them like pointers, but in modern perls you can just use references
Source : | Last Update : Tue, 28 Jun 22