P
Philip Primak
Dear pearl language users,
I wonder if there is a way to preserve case when making changes using
s/ operator. Here is my example: I need to change tail "abc" to "xyz",
tail "ABC" to "XYZ" etc. When I use "s/abc *$/xyz/i" it changes all
tail "abc" to lowercase "xyz" regardless of the original case of "abc".
Is there an option which would allow to make it more flexible and
preserve the case?
Advance thanks
Philip Primak
I wonder if there is a way to preserve case when making changes using
s/ operator. Here is my example: I need to change tail "abc" to "xyz",
tail "ABC" to "XYZ" etc. When I use "s/abc *$/xyz/i" it changes all
tail "abc" to lowercase "xyz" regardless of the original case of "abc".
Is there an option which would allow to make it more flexible and
preserve the case?
Advance thanks
Philip Primak