Next Program Repair Shop 58

Unnecessary Shell Calls

        Subject: problem with awk in perl script
        Message-Id: <91qbbv$g9h$1@foo.grnet.gr>
        system(`awk '{print $10,$1}' statdata.dat `);
        open F, "< statdata.dat" or die ...;
        while (<F>) {
          my ($status, $name) = (split)[9,0];
          print "$status$name\n";
        }
        close F;

Next Copyright © 2006 M. J. Dominus