|
Prev: subroutine
Next: Problem with DateTime
From: Chris Newman on 24 Jul 2006 23:03 I have 1500 records in a file. I know how to read the file EOF etc Here is a typical record Barkell, William James ps Lone Pine Gardens, Reid I want to convert the first occurrence of a mixed case word to all upper case. Could someone oblige please. Have tried the substitution but it good at finding the word but not at handling the replacement of individual letters which I require
From: Jrgen Exner on 24 Jul 2006 23:10 Chris Newman wrote: > I want to convert the first occurrence of a mixed case word to all > upper case. Could someone oblige please. Have tried the substitution > but it good at finding the word but not at handling the replacement > of individual letters which I require No replacement of individual letters necessary. See "perldoc -f upper". Second major advantage: if handles _all_ characters correctly, even those you do not know because they are not used in your country/language/culture. jue
From: Jrgen Exner on 25 Jul 2006 00:01 Jrgen Exner wrote: > Chris Newman wrote: >> I want to convert the first occurrence of a mixed case word to all >> upper case. Could someone oblige please. Have tried the substitution >> but it good at finding the word but not at handling the replacement >> of individual letters which I require > > No replacement of individual letters necessary. See "perldoc -f > upper". Second major advantage: if handles _all_ characters Sorry, brain fart. Make that "perdoc -f uc", of course. jue
From: Chris Newman on 25 Jul 2006 01:02 On Tue, 25 Jul 2006 14:01:55 +1000, Jrgen Exner wrote (in article <TIgxg.7944$yN3.214(a)trnddc04>): > Jrgen Exner wrote: >> Chris Newman wrote: >>> I want to convert the first occurrence of a mixed case word to all >>> upper case. Could someone oblige please. Have tried the substitution >>> but it good at finding the word but not at handling the replacement >>> of individual letters which I require >> >> No replacement of individual letters necessary. See "perldoc -f >> upper". Second major advantage: if handles _all_ characters > > Sorry, brain fart. > Make that "perdoc -f uc", of course. > > jue > > Thanks Jurgen, Must be lost in translation. Here is Australia i*brain fart * is not complimentary :)
From: Jrgen Exner on 25 Jul 2006 01:20
Chris Newman wrote: > On Tue, 25 Jul 2006 14:01:55 +1000, Jrgen Exner wrote > (in article <TIgxg.7944$yN3.214(a)trnddc04>): > >> Jrgen Exner wrote: >>> Chris Newman wrote: >>>> I want to convert the first occurrence of a mixed case word to all >>>> upper case. Could someone oblige please. Have tried the >>>> substitution but it good at finding the word but not at handling >>>> the replacement of individual letters which I require >>> >>> No replacement of individual letters necessary. See "perldoc -f >>> upper". Second major advantage: if handles _all_ characters >> >> Sorry, brain fart. >> Make that "perdoc -f uc", of course. > > Thanks Jurgen, Must be lost in translation. Here is Australia > i*brain fart * is not complimentary :) |