in reply to Named Parameters - Dashes or No?
This is my take, which really is a guess, but hopefully a qualified one.
I'll first pull out two strings from perlop:
Before 5.001, using an unary - with a bareword in the argument list was a trick to not have to quote it. As of 5.001, this trick was no longer needed since => already did that for you. So I believe that the dash style is a historical left-over.
ihb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Named Parameters - Dashes or No?
by Abigail-II (Bishop) on Jul 24, 2003 at 22:25 UTC |