10th June 2005, 1:00 PM
8 OUT OF 10?!?!?! Hmm, I'll write a perl script to fix this travesty.
#!/usr/bin/perl
open(REVIEW, "lttp_review.txt"); #open the review for reading
$text= < REVIEW >; #read file into variable
$text ~= s/8/9.9999999/; #sub 8 with 9.9999999, a proper score
print($_); #print out the fixed review
exit 0;
And if you are running a real OS, you could simply type this:
sed -e "s/8/9.9999999/g" lttp_review.txt
#!/usr/bin/perl
open(REVIEW, "lttp_review.txt"); #open the review for reading
$text= < REVIEW >; #read file into variable
$text ~= s/8/9.9999999/; #sub 8 with 9.9999999, a proper score
print($_); #print out the fixed review
exit 0;
And if you are running a real OS, you could simply type this:
sed -e "s/8/9.9999999/g" lttp_review.txt