Advertisement
cd62131

2.pl

May 30th, 2018
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.30 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. while (<>) {
  5.   my ($x, $y) = split;
  6.   my @xs = `perl ./1.pl $x`;
  7.   map chomp, @xs;
  8.   my @ys = `perl ./1.pl $y`;
  9.   map chomp, @ys;
  10.   while (@xs || @ys) {
  11.     print shift @xs if @xs;
  12.     print "\t";
  13.     print shift @ys if @ys;
  14.     print "\n";
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement