[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gawk 3.04
From: |
groggy |
Subject: |
Gawk 3.04 |
Date: |
Thu, 1 Feb 2001 02:00:12 GMT |
it's been a occuring theme for me to run into this problem which - if solved
- would add alot of power/functionality to gawk:
s="xxx yyy zzz"
gsub(/^./, toupper("&"), s)
gsub(/ ./, toupper("&"), s)
as an over-simplistic example of intending to capitalize the 1st char of all
words in a sentence. but gawk doesn't seem to allow the matched r.e. to be
passed to any string returning functions for processing. this would be a
very powerful enhancement without breaking any existing programs - these
types of operations are very unwieldy to do in other ways. it also
has a feel of being "sensible", since "&" should be holding the
match throughout the middle parameter of g/sub functions. ?
thank you for all your work. :)
Chris.
[Prev in Thread] |
Current Thread |
[Next in Thread] |