perl: Don't use qw() as parentheses.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 18 Jun 2011 12:00:00 +0000 (13:00 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 18 Jun 2011 12:00:00 +0000 (13:00 +0100)
In Perl 5.14:

Use of qw(...) as parentheses is deprecated at perl/blib/lib/Sys/Guestfs/Lib.pm line 1111.

perl/lib/Sys/Guestfs/Lib.pm

index 95c18a5..188d735 100644 (file)
@@ -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
     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;
         if(exists($mounts->{$path})) {
             return "" if($path eq '/');
             return $path;