open(INPUT,"<$ARGV[0]") or die;
$/ = "%%\n";
$theFile=<INPUT>;
#print $theFile;
close(INPUT);
#$theFile =~ s# \true\<\/optional\>\n##ig ;
$theFile =~ s# \<\/dependency\># \true\<\/optional\>\n \<\/dependency\>#ig;
open(OUTPUT,">$ARGV[1]") or die;
print(OUTPUT $theFile);
close(OUTPUT);
No comments:
Post a Comment