[ic] Autoload - can't get it to work

Ian Cowley interchange-users@icdevgroup.org
Fri Jan 10 10:45:01 2003


I'm trying to use Autoload.  I cannot get it to work, even using the basic
code below.  I've restarted Interchange and checked the logs, Interchange
restarts fine.

Here's my code:
 In /interchange/catalog.cfg:

  Autoload <<EOS
  [perl]
  $Scratch->{mook} = "Test"; 
  return;
  [/perl]
  EOS

Then, on the index page I try to display the value using [scratch mook],
nothing appears. I've restarted Interchange and checked the logs,
Interchange restarts fine.  I have noticed that when I move the Autoload
code up towards the beginning of catalog.cfg then I get an error when
restarting Interchange.

What am I missing? 

Thanks

Ian Cowley