The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

lib/mktemp-size.pl - work out the size of clusters and variants in a template

SYNOPSIS

  require "$ROADS::Lib/mktemp-size.pl";
  &WorkOutSize;

DESCRIPTION

This package defines a function which tries to work out the number of clusters and variants in a template being edited using the CGI variables passed on to it by the main body of the template editor program mktemp.pl.

METHODS

WorkOutSize;

This function sets the CGI variables variantsize and clusterclustername (e.g. clusterAuthor) with the number of clusters of each type and variants in a template. These are determined by examining the original template being edited and factoring in the existing values of these CGI variables.

BUGS

Working largely with global variables, including an open filehandle for the original template. It would be better if this was done in a less dangerous way.

SEE ALSO

"mktemp.pl" in admin-cgi

COPYRIGHT

Copyright (c) 1988, Martin Hamilton <martinh@gnu.org> and Jon Knight <jon@net.lut.ac.uk>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

It was developed by the Department of Computer Studies at Loughborough University of Technology, as part of the ROADS project. ROADS is funded under the UK Electronic Libraries Programme (eLib), the European Commission Telematics for Research Programme, and the TERENA development programme.

AUTHOR

Jon Knight <jon@net.lut.ac.uk>