in reply to Re^2: keeping binary data raw (char*)
in thread keeping binary data raw
newSVpvf works perfectly. i wish i was good enough at C or C++ where i didnt need to make wrappers in perl for stuff like this. perl's I/O is so much more intuitive that either of these two.