On Tue, 24 Jul 2012 11:53:33 -0400
Mark Haney <[email protected]> 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 );
  print "$n  ==  $m\n";
}


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

        _Perl links_
official site   : http://www.perl.org/
beginners' help : http://learn.perl.org/faq/beginners.html
advance help    : http://perlmonks.org/
documentation   : http://perldoc.perl.org/
news            : http://perlsphere.net/
repository      : http://www.cpan.org/
blog            : http://blogs.perl.org/
regional groups : http://www.pm.org/

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to