in reply to Re^2: POE - can't increment within sub
in thread POE - can't increment within sub

Unfortunately, my main problem is that when I run this example it only prints out the '00001' and ever increments it in the context I provided.

Replies are listed 'Best First'.
Re^4: POE - can't increment within sub
by Anonymous Monk on Dec 12, 2015 at 06:03 UTC
    but you have
    $stuff = $format_sequence_number . 'READ' . '00000'; $heap->{server}->put($stuff);
    And you don't change $format_sequence_number? Also, what's the point of my $format_sequence_number = sprintf("%s", $sequence_number); I don't understand what that's supposed to accomplish.

      For whatever reason, before I used the sprintf on the scalar, when the code would run it would consistently output 1READ instead of 00001READ