tobold.org

correct • elegant • free

The $ Operator

In the past, I was confused by the $ operator. It would sometimes appear in other people's programs (never my own, of course, since I didn't understand it), and seemed to be doing something quite magical. This tutorial explains the $ operator, first with lots of examples and "rules of thumb", then looking at the theory behind it. We conclude by playing with some esoteric uses for $.