Search results

  1. S

    Perl substr replacement?

    Hi, I'm working with packets in Perl, and cannot remember how to fill in blank spaces using substr. For example. I have \x00\x00\x00\x00, but the combined packet has to be at least \x00\x00\x00\x00\x00\x00. How would I be able to add the last 2 \x00s on using substr? Currently, I have this (I...
  2. S

    Perl substr replacement help.?

    I'm using substr in perl to add missing characters to a string. ex. substr($string, length($string), 23-length($string), ????) After this, I need to add a character for each missing character, how would I do this? :x For an example. I enter the number 19563, but the length of the string...
  3. S

    Perl substr replacement?

    Hi, I'm working with packets in Perl, and cannot remember how to fill in blank spaces using substr. For example. I have \x00\x00\x00\x00, but the combined packet has to be at least \x00\x00\x00\x00\x00\x00. How would I be able to add the last 2 \x00s on using substr? Currently, I have this (I...
  4. S

    Perl substr replacement help.?

    I'm using substr in perl to add missing characters to a string. ex. substr($string, length($string), 23-length($string), ????) After this, I need to add a character for each missing character, how would I do this? :x For an example. I enter the number 19563, but the length of the string...
Back
Top