Guest User

Untitled

a guest
Oct 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. # enable taint mode somehow?
  4.  
  5. #use Modern::Perl;
  6. use strict;
  7. use warnings;
  8.  
  9. use mro ();
  10. use feature ();
  11.  
  12. open (my $pip, '-|', 'pip list --outdated --format freeze') or die "death......\n";
  13. my @pips= <$pip>;
  14. close $pip;
  15.  
  16. my $count;
  17. for (@pips){
  18. $count++ && print qq(\n);
  19. if (/^(\w[^=]*)=/) {
  20. print qq(==> $_);
  21. my $msg= qx(pip install --upgrade $1) or die qq(it ded\n);
  22. print $msg;
  23. }
  24. }
Add Comment
Please, Sign In to add comment