(I wrote):
>> It seems to me that there is never any need for $ in arithmetic contexts, so
>> the
>> obvious fix would be to just remove any $ found between (( and )). But from
>> what I
>> understand that is easier said than done.
(Causing Greg to write):
>Unfortunately, that's not true. You need $ if you want to use any
>special parameters in an arithmetic context, such as $# or $1.
Good point!