Help for this page

Select Code to Download


  1. or download this
    foreach $line (<STDIN>) {
      chomp $line;
      $line =~ s/-(?=[^-]+(-r[0-9]+)?$)/   ==>   /;
      print "$line\n";
    }
    
  2. or download this
    foreach $line (<STDIN>) {
      chomp $line;
      ($package, $ver) = split /-(?=[^-]+(-r[0-9]+)?$)/, $line;
      print "$package   ==>   $ver\n";
    }