[svlug] OT: Perl pack?
Robert L. Harris
nomad at rnd-consulting.com
Thu Nov 18 12:28:55 PST 1999
I'm reading through the perl books I have (programming and cookbook). I
think pack will be the way I want to go, but I'm not sure.
Basically, I have a variable length string of Characters (a-x,A-Z,0-9 and
a few more) I'd like to "compact" and preferably make non-human-readable.
I also need to be able to unpack this.
Basically something like:
$Packed=function($Clear);
$Clear=function($Packed);
Help?
Robert
---------------------------------------------------------------------------
Robert L. Harris | "A person is smart;
Senior System Engineer | People are dumb, panicky
R&D Consulting. \_ dangerous animals" - Agent K
http://www.rnd-consulting.com/~nomad
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.
More information about the svlug
mailing list