S
Sean.Dewis
Hi everyone
I'm pretty crap at perl, so I'd appreciate so help from you guys.
I have a string value held in $body variable.
What I need to do is manipulate each individual character value in the
string with OR - "|" and then replace that character with the
character's new value.
I'm using chr(ord($c) | 64) to get the new value, but I'm stuck on two
things: -
1) How to go through the string byte by byte and perform the OR 64 on
it
2) How to get the character equivalent back into the string in the
right place
For example the string is "abcdefg", by (I know it's not true)
performing OR 64 on each char I want "fghijkl" out.
Any idea's? Code examples would be appreciated.
TIA
Sean
I'm pretty crap at perl, so I'd appreciate so help from you guys.
I have a string value held in $body variable.
What I need to do is manipulate each individual character value in the
string with OR - "|" and then replace that character with the
character's new value.
I'm using chr(ord($c) | 64) to get the new value, but I'm stuck on two
things: -
1) How to go through the string byte by byte and perform the OR 64 on
it
2) How to get the character equivalent back into the string in the
right place
For example the string is "abcdefg", by (I know it's not true)
performing OR 64 on each char I want "fghijkl" out.
Any idea's? Code examples would be appreciated.
TIA
Sean