+2003-05-23 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * automake.in: Use plain strict, including refs.
+ (macro_define, handle_single_transform_list): Use \&{'name'} to
+ build references to named subroutines.
+
2003-05-22 Karl Berry <karl@gnu.org>
* automake.texi: Update @dircategory to match the Free Software
package Automake;
-use strict 'vars', 'subs';
+use strict;
use Automake::General;
use Automake::XFile;
use Automake::Channels;
# should be applied. This means this particular language
# generates another source file which we must then process
# further.
- my $subr = 'lang_' . $lang->name . '_rewrite';
+ my $subr = \&{'lang_' . $lang->name . '_rewrite'};
my ($r, $source_extension)
- = & $subr ($directory, $base, $extension);
+ = &$subr ($directory, $base, $extension);
# Skip this entry if we were asked not to process it.
next if $r == LANG_IGNORE;
# This hook helps to update some internal state *while*
# parsing the file. For instance the handling of SUFFIXES
# requires this (see var_SUFFIXES_trigger).
- my $var_trigger = "var_${var}_trigger";
+ my $var_trigger = \&{"var_${var}_trigger"};
&$var_trigger($type, $value) if defined &$var_trigger;
}