NAME

savevars - Perl pragma to auto-load and save global variables

SYNOPSIS

use savevars qw($frob @mung %seen);

DESCRIPTION

This module will, like use vars, predeclare the variables in the list. In addition, the listed variables are retrieved from a per-script configuration file and the values are stored on program end. The filename of the configuration file is "$ENV{HOME}/.${progname}rc", where progname is the name of the current script.

The values are stored using the Data::Dumper module, which is already installed with perl5.005 and better.

FUNCTIONS

cfgfile

Return the pathname of the current configuration file.

writecfg

Write the variables to the configuration file. This method is called at END.

dont_write_cfgfile

If this function is called, then the configuration file will not be written at END.

AUTHOR

Slaven Rezic <eserte@cs.tu-berlin.de>

Copyright (c) 1998,1999 Slaven Rezic. All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

vars.