in reply to Regarding style
I don't think anyone uses m// anymore. i imagine that some people don't even know what it is! Languages evolve and perl is a language. Since m// is arguably the most used regex function, I don't disagree that it's use is optional.
The "diamond operator" is used to save five keystrokes. Whether this is good or evil is irrelevant. use whichever is more obvious in context to you. A well-weathered JAPH will link them in his head instantaneously. No problem.
I think there are many more such "shortcuts", such as cutting down on parentheses in functions. Also, I jokingly consider all of the awk-inherited variables to be very nice shortcuts that I enjoy alot. Thanx awk!
Also, another great shortcut can be found under this link.
|
---|
Replies are listed 'Best First'. | |
---|---|
RE (tilly) 2: Regarding style
by tilly (Archbishop) on Oct 25, 2000 at 03:20 UTC | |
by merlyn (Sage) on Oct 25, 2000 at 03:34 UTC | |
by AgentM (Curate) on Oct 25, 2000 at 03:35 UTC | |
by merlyn (Sage) on Oct 25, 2000 at 03:38 UTC | |
RE: RE: Regarding style
by footpad (Abbot) on Oct 25, 2000 at 00:20 UTC | |
by AgentM (Curate) on Oct 25, 2000 at 01:30 UTC | |
by footpad (Abbot) on Oct 25, 2000 at 02:13 UTC |