When I started out using Perl it was explained to me that these characters were chosen because:
$
looked a bit like an ‘s’ so that was for scalars,@
has an ‘a’ in the middle so that was for arrays, and%
was for hashes because it looked like a key-value pair divided by a slash.
More Related Contents:
- How do I use symbolic references in Perl?
- What is the meaning of @_ in Perl?
- Convert Bash script to Perl/VBS/any other windows compatible language [closed]
- Redirecting the perl script
- How can I troubleshoot my Perl CGI script?
- How is Perl’s @INC constructed? (aka What are all the ways of affecting where Perl modules are searched for?)
- How can I install Perl modules without root privileges?
- How do I compare two strings in Perl?
- What is the difference between ‘my’ and ‘our’ in Perl?
- Difference between &function and function() in perl [duplicate]
- How do you round a floating point number in Perl?
- Why do I have to specify the -i switch with a backup extension when using ActivePerl?
- How can I run Perl system commands in the background?
- Why is this program valid? I was trying to create a syntax error
- How can I convert the stringified version of array reference to actual array reference in Perl?
- Find size of an array in Perl
- What does the -> arrow do in Perl?
- What’s the difference between iterating over a file with foreach or while in Perl?
- What’s the differences between system and backticks and pipes in Perl?
- How to ignore ‘Certificate Verify Failed’ error in perl?
- How do I make Perl scripts recognize command-line parameters in the Win32 cmd console?
- What does shift() do in Perl?
- How can I calculate the number of days between two dates in Perl?
- Which framework should I use to write modules? [closed]
- How can I treat command-line arguments as UTF-8 in Perl?
- How do I capture Perl’s STDOUT in a variable?
- Is object oriented exception handling in Perl worth it?
- How can I check whether my Perl installation is 32 or 64 bit?
- What decides the order of keys when I print a Perl hash?
- Converting relative path into absolute path?