From e7b9d315e6bcb3a3c86042dc5fd58e6f4461ed2d Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Mon, 4 Feb 2013 23:37:23 +0100 Subject: maint: use more perl subroutines prototypes in the automake script * automake.in: Throughout this file. Note that these new prototypes are not much useful, since many subroutine calls still use the old '&foo' form; but we'll take care of that in later patches. * lib/Automake/Language.pm (target_hook): Call the '_target_hook' of the given language in a more modern form, avoiding '&'. Signed-off-by: Stefano Lattarini --- lib/Automake/Language.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Automake/Language.pm') diff --git a/lib/Automake/Language.pm b/lib/Automake/Language.pm index 6408e86d0..a678e1e4d 100644 --- a/lib/Automake/Language.pm +++ b/lib/Automake/Language.pm @@ -98,7 +98,7 @@ sub target_hook ($$$$%) my ($self) = @_; if (defined $self->_target_hook) { - &{$self->_target_hook} (@_); + $self->_target_hook->(@_); } } -- cgit v1.2.1