diff --git a/CREDITS b/CREDITS index 188bf73f..7b5a0bb9 100644 --- a/CREDITS +++ b/CREDITS @@ -245,3 +245,6 @@ E: rvtol@isolution.nl N: Jean-Pierre Rupp E: jpierre@xeno-genesis.com + +N: Tom Christiansen +E: tchrist@perl.com diff --git a/sections/idioms.pod b/sections/idioms.pod index a8d7f105..4c9c73b0 100644 --- a/sections/idioms.pod +++ b/sections/idioms.pod @@ -112,24 +112,32 @@ their phone extensions: my %extensions = ( - 001 => 'Armon', - 002 => 'Wesley', - 003 => 'Gerald', - 005 => 'Rudy', - 007 => 'Brandon', - 008 => 'Patrick', - 011 => 'Luke', - 012 => 'LaMarcus', - 017 => 'Chris', - 020 => 'Maurice', - 023 => 'Marcus', - 024 => 'Andre', - 052 => 'Greg', - 088 => 'Nic', + '001' => 'Armon', + '002' => 'Wesley', + '003' => 'Gerald', + '005' => 'Rudy', + '007' => 'Brandon', + '008' => 'Patrick', + '011' => 'Luke', + '012' => 'LaMarcus', + '017' => 'Chris', + '020' => 'Maurice', + '023' => 'Marcus', + '024' => 'Andre', + '052' => 'Greg', + '088' => 'Nic', ); =end programlisting +=begin tip Hash Key Quoting Rules + +Fat comma hash key quoting only works on things that look like barewords; these +keys look like numbers--octal numbers, in specific, with the leading zero. Yes, +almost everyone makes this mistake. + +=end tip + To sort this list by name alphabetically, you must sort the hash by its values, not its keys. Getting the values sorted correctly is easy: