in reply to A question of style
There is at least one case, though, in which the ampersand has a very specific use: if you write "&func" (this is, with ampersand and without parenthesis) the function will be called with the contents of @_ as arguments. I don't know where this is documented; I learned it from Conway's OO-perl book.
Other uses for the ampersand include de-referencing code references.
--ZZamboni
|
---|
Replies are listed 'Best First'. | |
---|---|
RE (tilly) 2: A question of style
by tilly (Archbishop) on Aug 23, 2000 at 03:53 UTC |