In Writing CGI Applications with Perl, have following code to log visitors.
(my $digits = #ENV{'REMOTE_ADDR'}) =~ s/\.//g;
my $address = pack("C4", $digits);
in perldoc,
pack TEMPLATE,LIST
“C4” should be the template. What’s the actual meaning of this?
Please read the
packdocs you mention. The template for C is:So
C4is four unsigned chars.