open my $fh, '<', 'C:/my_modules.txt' or die "Oops: $!\n"; while ( <$fh> ) { chomp; print "Installing $_...\n"; system ( "ppm", "install", $_ ); }