From: Ralph Shnelvar Date: 2010-02-04T18:55:53+09:00 Subject: Re: hooking subscript operations in a hash RN> Is env['X'] = 'Y' the same as env[]=('X','Y') ? RN> Since you defined a method with def []= so I think env[]=('X','Y') is RN> easier for understanding. First ... I think you meant env[]={'X', 'Y'} (braces instead of parenthesis) The first form env[]={'X', 'Y'} means Create and/or replace a hash table called "env" and stuff it with an index of 'X' and a value of 'Y' The second form env['X'] = 'Y' means Take an existing hash table called "env" and add/replace the index 'X' in that table with the value 'Y'