Got
... '[] =': it is not possible to change the frozen string (TypeError)
when trying to change what I thought was a copy of ARGV [0].
The same results for each of
arg = ARGV[ 0 ] arg_cloned = ARGV[ 0 ].clone arg_to_s = ARGV[ 0 ].to_s arg[ 'x' ] = 'y' arg_cloned[ 'x' ] = 'y' arg_to_s[ 'x' ] = 'y'
ruby
Straff Feb 05 '10 at 3:56
source share