I
IanW
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
"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