in reply to Creating trailer on packets
I couldn't get sprintf to pad with a certain character and left-justify at the same time - maybe someone else can suggest something?# ... $packet = sprintf("%-60s",$packet); $packet =~ s/\s/\0/sg; #<-- kludgey #...
|
|---|