in reply to is IP# in $ENV{REMOTE_ADDR} spoofable?
orprintf FH "$key %30s", $ENV{$key};
instead ofprint FH $key, " ", sprintf("%30s", $ENV{$key});
as the printf solutions are shorter, more Perlish and less errorprone.my $spaces = ' ' x ( 30 - length($key) ); print FH "$key $spaces $ENV{$key}\n";
Greetings,
Janek
|
|---|