summaryrefslogtreecommitdiff
path: root/lib/Automake/Variable.pm
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2003-12-08 18:00:02 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2003-12-08 18:00:02 +0000
commita5fc5b6d7e16ce28d332cf550803f85463aed041 (patch)
tree428e0ff72ea348a9113a36d74b22b936006ea7e9 /lib/Automake/Variable.pm
parent3fa9f4b416951ba0954a2f5eaf7557c14737a622 (diff)
downloadautomake-a5fc5b6d7e16ce28d332cf550803f85463aed041.tar.gz
* lib/Automake/Variable.pm (hook): Use $$ as prototype, not $&.
Perl 5.6.0 will not accept a reference sub reference for the latter. * automake.in (var_SUFFIXES_trigger): Adjust registration via Automake::Variabke::hook. (handle_texinfo_helper): Make sure `inner_expand => 1' appears on one line, so that Perl 5.6.0 does not complain about inner_expand being a bare identifier.
Diffstat (limited to 'lib/Automake/Variable.pm')
-rw-r--r--lib/Automake/Variable.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Automake/Variable.pm b/lib/Automake/Variable.pm
index 4cf264abd..728590220 100644
--- a/lib/Automake/Variable.pm
+++ b/lib/Automake/Variable.pm
@@ -286,7 +286,7 @@ is the value being appended to C<$varname>.
=cut
use vars '%_hooks';
-sub hook ($\&)
+sub hook ($$)
{
my ($var, $fun) = @_;
$_hooks{$var} = $fun;