Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: doodspeak

by chazzz (Pilgrim)
on Sep 20, 2001 at 08:37 UTC ( #113529=note: print w/ replies, xml ) Need Help??


in reply to doodspeak

Here's my version. It can be used the standard 3 perl ways: doodspeak.pl "file", cat file | doodspeak.pl and finally by using STDIN.

#!/usr/bin/perl use strict; while (<>) { chomp; exit if($_ eq "EXIT"); my %words = ( 'you' => 'joo', 'yay' => 'woot', 'rock' => 'roxor', 'rocked' => 'roxored', 'defeated' => 'roxored', 'beat' => 'roxored', 'hacked' => 'haxored', '!' => '!!!', 'hacker' => 'haxor', 'sucked' => 'suxored', 'suck' => 'suxor', 'elite' => 'leet', 'dude' => 'dood' ); foreach my $word ( keys %words ) { s/$word/$words{$word}/ig; } tr/OoIiLlEeAa/0011113344/; s/s\b/$1z/g; print "$_\n"; }


Comment on Re: doodspeak
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://113529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2014-12-18 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (44 votes), past polls