in reply to Re: Unique visits - Webserver log parser
in thread Unique visits - Webserver log parser
you can put this (after installing enum):use constant IP => 0; use constant AUTH => 1; use constant DATE => 2; use constant REQUEST => 3; use constant STATUS => 4; use constant BYTES => 5; use constant REFERER => 6; use constant UA => 7; use constant METHOD => 8; use constant URI => 9;
Much nicer and less chance of making a mistake.use enum qw(IP AUTH DATE REQUEST STATUS BYTES REFERER UA METHOD URI);
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ?Enumerated lists (was Re: Re: Unique visits - Webserver log parser)
by Matts (Deacon) on Feb 27, 2002 at 16:22 UTC |