June 2001 Making a Module Back Slide 51 Forward

Which Methods to AUTOLOAD

%AUTOLOADABLE = (
  serverroot => 's', agentlog => 's', httpport   => 's', serveradmin => 's',
  refererlog => 's', errorlog => 's', servername => 's', transferlog => 's',

  hit  => 'h', ostatus => 'h', topdomain  => 'h', browserbyos => 'h',
  proc => 'h', proto   => 'h', hitbydate  => 'h', querystring => 'h',
  url  => 'h', uagent  => 'h', uaversion  => 'h', visitorbydatetime => 'h',
  file => 'h', method  => 'h', hitbytime  => 'h', visitorbytime => 'h',
  byte => 'h', lstatus => 'h', bytebydate => 'h', bytebytime => 'h',
  host => 'h', referer => 'h', secdomain  => 'h', visitorbydate => 'h',
  user => 'h', browser => 'h', platform   => 'h', refererdetail => 'h',
  addr => 'h', sec     => 'h', hostname   => 'h', bytebydatetime => 'h',
  port => 'h', login   => 'h', filename   => 'h', hitbydatetime => 'h');

  • %AUTOLOADABLE can be declared with my, our, or use vars
  • The values can all be 1 if they all behave the same way
  • In this example there are two types, returning scalars and hashes


Copyright © 2001 R. Geoffrey Avery Back Contents Forward