Link to home
Start Free TrialLog in
Avatar of cyrobinson
cyrobinson

asked on

pack command

How do I convert a string (alphanumeric) to binary and then back again?

e.g. $string = "a2?76574=ghgh"

I take it you use pack to convert into binary and then unpack to convert the other way, I have tried this and cant get the syntax right.  Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cyrobinson
cyrobinson

ASKER

I was so close yet so far away.  Thanx 4 your help