Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PERL

difference between @ and $ in perl

$ 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
 
PREVIOUS NEXT
Tagged: #difference #perl
ADD COMMENT
Topic
Name
3+1 =