| Description |
Definition |
Accessing |
| scalar | $scalar = 'frogsticker'; | print $scalar; |
| array | @array = ('frogsticker', 'toadjumper'); | print $array[0]; print @array; |
| hash |
%hash = ('mynickname', 'frogsticker', 'yournickname', 'toadjumper');
%hash = (mynickname => 'frogsticker', yournickname => 'toadjumper');
|
print $hash{mynickname}; |
| scalar reference | $scalarRef = \$scalar; | print $$scalar; |
| array reference | $arrayRef = \@array | print $$arrayRef[0]; print $arrayRef->[0]; print @$arrayRef; |
| hash reference | $hashRef = \%hash; | print $$hashRef{mynickname}; $hashref->{'mynickname'}; |
| constant reference | $constant = \'frogsticker'; | print $constant; |
| anonymous array reference | $anonArrayRef = ['frogsticker', 'toadjumper'] | print $$anonArrayref[0]; print $anonArrayRef->[0]; print @$anonArrayRef; |
| anonymous hash reference | $hashRef = {mynickname => 'frogsticker', yournickname => 'toadjumper'}; | print $$anonHashRef{mynickname}; print $anonHashRef->{'mynickname'}; |
Remember, your login is based on your machine's hostname, not on any other number.
~/[initials] refers to the subdirectory under your homedir, named after your initials. Everything except for .dotfiles will be stored in your ~/[initials] directory.