Actually, without even re-saving as DOS text, the code seems to be working just fine on the target field -- after adding all fields to an array, and applying the substitution to just the target, i.e:
$string=$data[6]; ## data[6] is the target Field in the array.
$string =~...
The code definitely works, just not on that particular field. (It does a terrific job on a URL field but, of course, I don't want to use it there.)
I have an additional chance to apply it separately to the target field and, if that does not work, the data is probably full of invisible...
That was included in the code, but omitted when I copied it to the above reply.
This is what I have:
$line =~ s/([a-z])([A-Z])/\1\. \2/g;
I also applied it with altenate characters, i.e.
$line =~ s/([a-z])([A-Z])/\1AAA \2/g;
to see of I was simply missing its application, but still...
Using something like this:
(pseudocode)
$line=~s/lcUC/lc uc/g;
I want to add one or more spaces (and perhaps a period) between upper and lower case characters that touch each other, i.e.:
This is a blue widgetThis is a red widgetThis is a brown widget
should be:
Thus is a blue...
And, in digging deeper, I found another one. In this one, I see there is a %periodic, which I did not see in the previous example I posted. Using the definition you gave me, I see that the %periodic defines the hash, and the $element and $weight are the values, correct?
Use a hash to provide...
I based my example from this thread, where it was described as a hash:
http://www.tek-tips.com/viewthread.cfm?qid=1463910&page=1
Below is how it was used. I understand you explanation well enough, but still need to read deeper into these threads to understand it better.
“I'd suggest using a...
After reading this very helpful forum for a few weeks, and now I finally have a question!
I am learning Perl and don’t fully understand hashes. I understand that they can be used in place of arrays to simultaneously compare and change data, but which part of the hash expression does what...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.