Tuesday, January 3, 2012

What do variable sigils indicate in Perl 5?

They indicate how the variable is being used: $ is for a scalar (reference, filehandle, string, number); @ is an array; % is a hash (an even-sized list); & is a subroutine; and * is a typeglob.

No comments :