diff options
author | B. Watson <yalhcru@gmail.com> | 2016-02-26 01:44:36 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-02-26 01:44:36 -0500 |
commit | f3b7f8c68e6fe58aad1d093b4efc4eb665ff2788 (patch) | |
tree | 15a197e8f9b96b7f7bfed1dfda50cadb974bb663 /messages.pl | |
parent | 3da4662976b697f203498b79e46e85ae8df01981 (diff) | |
download | taipan-f3b7f8c68e6fe58aad1d093b4efc4eb665ff2788.tar.gz |
farting with comments in the dictionary stuff
Diffstat (limited to 'messages.pl')
-rw-r--r-- | messages.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/messages.pl b/messages.pl index fe94a35..0d68f4d 100644 --- a/messages.pl +++ b/messages.pl @@ -35,10 +35,10 @@ while(<DATA>) { s/^\w+\s+//; my $orig = $_; + #warn "msg: $_\n"; s/"//g; s/\\r//g; s/\\n/\n/g; - #warn "msg: $_\n"; $total_in += (1 + length); @@ -49,7 +49,9 @@ while(<DATA>) { } } - #warn "'$_'\n" if $label eq 'do_you_want'; + my $w = $_; + $w =~ s/\n/\\n/g; + #warn "got: \"$w\"\n"; open my $out, ">msg.out" or die $!; print $out $_; close $out; |