in reply to Re^7: Question about warnings and arrays
in thread Question about warnings and arrays

yoru a genius D:< it would have took me a few days to even think about that prob lol EDIT: nope, i get error when i try to pack the data to any format and it still writes in text mode.
  • Comment on Re^8: Question about warnings and arrays

Replies are listed 'Best First'.
Re^9: Question about warnings and arrays
by Anonymous Monk on Aug 13, 2014 at 15:20 UTC
    You want to binmode $filehandle; perhaps?
Re^9: Question about warnings and arrays
by Anonymous Monk on Aug 13, 2014 at 16:49 UTC

    What did you try? Please remember to show your sample input, code, expected output vs. actual output (incl. error messages), otherwise we can't help much.

    Also please mark hexadecimal numbers as such, since apparently you mean 0x29==41 instead of 29, as well as 0x32 and 0x39 for the ASCII string "29".

    Anyway, pack works fine for me:

    $ perl -MData::Dump=pp -le 'print pp pack("C", 0x29)' ")"

    For this new problem you might want to start a new thread since this one is starting to get fairly deep (and remember How do I post a question effectively?).

      yes i will make another thread about it. i will prepare the data tho and try to be clear as possible. what this amounts to, is fixing the output of another program <.< ... and is in efforts of translating nino kuni game language files. it is just something someone came to me for help and i was able to generate the data they needed, but writing it back correctly has proved to be quite the task lol