From: Chris Newman on

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: Jrgen Exner on
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: Jrgen Exner on
Jrgen 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
On Tue, 25 Jul 2006 14:01:55 +1000, Jrgen Exner wrote
(in article <TIgxg.7944$yN3.214(a)trnddc04>):

> Jrgen 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: Jrgen Exner on
Chris Newman wrote:
> On Tue, 25 Jul 2006 14:01:55 +1000, Jrgen Exner wrote
> (in article <TIgxg.7944$yN3.214(a)trnddc04>):
>
>> Jrgen 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 :)


 |  Next  |  Last
Pages: 1 2
Prev: subroutine
Next: Problem with DateTime