Back to dbman after a few months, all my perl has vanished from my brain. So excuse me if the following is an all too basic question.
I would like to have the script check the last character in a field value and perform actions accordingly.
Examples: If the value of $rec{'booktitle'} is "who stole my horse?", where the last character is a question-mark, then the script should NOT print a full-stop after printing $rec{'booktitle'}. If the last character is some alphanumeric character, then it should print a full-stop.
In more general terms, I'd like to check whether the last character in an entry is an interpunction.
Any help greatly appreciated, as always,
cheers,
birgit
kellner
I would like to have the script check the last character in a field value and perform actions accordingly.
Examples: If the value of $rec{'booktitle'} is "who stole my horse?", where the last character is a question-mark, then the script should NOT print a full-stop after printing $rec{'booktitle'}. If the last character is some alphanumeric character, then it should print a full-stop.
In more general terms, I'd like to check whether the last character in an entry is an interpunction.
Any help greatly appreciated, as always,
cheers,
birgit
kellner