tr problem

From: IanW (onedoesnot_at_needto.know)
Date: 09/30/04


Date: Thu, 30 Sep 2004 09:13:07 +0100

If I have a string like this

"listname A short description of the list"

and I want to make the "listname" part of the string upper case, how can I
do this with tr///?

Incidentally, "listname" will never have any spaces in it and will always be
at the beginning of the string, so I had thought that sth like this might
work, but it just makes the whole thing upper case:

$_ =~ tr/^a-z+(?=\s+)/A-Z/;

Ian



Relevant Pages

  • Re: Cant get items from list using WebServices in MOSS 2007
    ... with the listName "documents" was not intelligent enough. ... GetListItems function for the Items webservice work. ... listName As String, _ ... viewFields As XmlNode, _ ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: show a list view in a customized web part
    ... private string _listName; ... private string _viewName; ... stringtemp; ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: SQL Query Help
    ... returned by the query and concatenate all of the returned ListNames ... Well i need to loop through all and populate a combobox. ... "ListName". ... that contains a single string. ...
    (borland.public.delphi.database.ado)