]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind/Session.pm
Fix a couple of POD typos
[perl/modules/Test-Valgrind.git] / lib / Test / Valgrind / Session.pm
index d222f11ae788a4d0394607ca3728325b1325002a..8d78d86e730b3802e5bb70612e37b58a045df16e 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Session - Test::Valgrind session object.
 
 =head1 VERSION
 
-Version 1.17
+Version 1.19
 
 =cut
 
-our $VERSION = '1.17';
+our $VERSION = '1.19';
 
 =head1 DESCRIPTION
 
@@ -65,7 +65,7 @@ Defaults to the current C<PATH> environment variable.
 If a simple scalar C<$valgrind> is passed as the value to C<'valgrind'>, it will be the only candidate.
 C<@search_dirs> will then be ignored.
 
-If an array refernce C<\@valgrind> is passed, its values will be I<prepended> to the list of the candidates resulting from C<@search_dirs>.
+If an array reference C<\@valgrind> is passed, its values will be I<prepended> to the list of the candidates resulting from C<@search_dirs>.
 
 =item *
 
@@ -132,13 +132,14 @@ sub new {
  for my $path (@paths) {
   next unless defined($path) and MM->maybe_command($path);
   my $output = qx/$path --version/;
-  $version   = do {
+  my $ver    = do {
    local $@;
    eval { Test::Valgrind::Version->new(command_output => $output) };
   };
-  if (defined $version) {
-   next if defined $min_version and $version < $min_version;
+  if (defined $ver) {
+   next if defined $min_version and $ver < $min_version;
    $valgrind = $path;
+   $version  = $ver;
    last;
   }
  }
@@ -641,7 +642,7 @@ You can find documentation for this module with the perldoc command.
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2009,2010,2011,2013,2015 Vincent Pit, all rights reserved.
+Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.
 
 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.