Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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: "file", cat file | 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"; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://113529]
[choroba]: To avoid accidental overwriting of the variable in if ($x = 3)
[karlgoethebier]: Corion: Auch in hessisch? Mer wasses net.
[Corion]: Hmm - I'm not sure, I haven't read the mundart/slang translations ;)
[Eily]: $F[1] =~ s/^0//r could be written as (0+$F[1]). It's less explicit though
[Discipulus]: ah! seems wise choroba, you play safe
[shmem]: Eily: also -+-$F[1]
[shmem]: hmm... there should be a glyph for "bembel" in unicode "miscellaneous symbols"
[karlgoethebier]: shmem: ++1000. Also for Schöppsche
[Eily]: shmem Indeed :)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-05-24 08:44 GMT
Find Nodes?
    Voting Booth?