Skip to content

Instantly share code, notes, and snippets.

@mwalling
Created January 29, 2010 01:44
Show Gist options
  • Save mwalling/289373 to your computer and use it in GitHub Desktop.
Save mwalling/289373 to your computer and use it in GitHub Desktop.
# vim:ft=perl
use strict;
use warnings;
use Acme::LeetSpeak;
open INFILE, "messages.properties" or die $!;
open OUTFILE, ">messages_leet.properties" or die $!;
while(<INFILE>) {
my $line = $_;
my ($key, $eng_val) = split /=/, $line;
my $leet_val = leet($eng_val);
print OUTFILE $key . "=" . $leet_val;
}
close INFILE;
close OUTFILE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment