From: Richard W.M. Jones Date: Sat, 18 Jun 2011 12:00:00 +0000 (+0100) Subject: perl: Don't use qw() as parentheses. X-Git-Tag: 1.8.9~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=ddb10a9aaf6fee880a10da09ff0754eb33202b71;p=libguestfs.git perl: Don't use qw() as parentheses. In Perl 5.14: Use of qw(...) as parentheses is deprecated at perl/blib/lib/Sys/Guestfs/Lib.pm line 1111. (cherry picked from commit 5c3c7e8825341e18c9449976f8a321a04cc78d79) --- diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 95c18a5..188d735 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -1108,7 +1108,7 @@ sub _find_grub_prefix die(__"Can't find grub on guest") unless($g->exists('/boot/grub/menu.lst')); # Look for the most specific mount point in mounts - foreach my $path qw(/boot/grub /boot /) { + foreach my $path (qw(/boot/grub /boot /)) { if(exists($mounts->{$path})) { return "" if($path eq '/'); return $path;