Re: Slightly OT: POST data to perl script

2012-07-24 Thread Mark Haney
On 07/24/2012 12:20 PM, Shawn H Corey wrote: On Tue, 24 Jul 2012 11:53:33 -0400 Mark Haney wrote: The problem I'm seeing in tcpdump is that it appears that the first two integers are being dropped if they are both zeroes. You could reconstruct the leading zeros in your Perl script. for my $

Re: Slightly OT: POST data to perl script

2012-07-24 Thread Shawn H Corey
On Tue, 24 Jul 2012 11:53:33 -0400 Mark Haney wrote: > The problem I'm seeing in tcpdump is that it appears that the first > two integers are being dropped if they are both zeroes. You could reconstruct the leading zeros in your Perl script. for my $n ( 0 .. 10 ){ my $m = sprintf( '%04d', $n

Slightly OT: POST data to perl script

2012-07-24 Thread Mark Haney
This is slightly OT, but I'm kinda under a dead line and am hoping someone takes pity on me and supplies an answer. I have a small webserver that takes data from a custom chip and sends it via a POST to a perl script on our primary webserver. The data is sent like TIME=XX&TOWER= where